Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fehmer committed Sep 5, 2024
1 parent dcbd469 commit 5730e24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/ts/test/funbox/funbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,9 @@ FunboxList.setFunboxFunctions("ddoouubblleedd", {
FunboxList.setFunboxFunctions("instant_messaging", {
alterText(word: string): string {
return word
.toLocaleLowerCase()
.replace(/\./g, "\n") //replace . with enter
.toLowerCase()
.replace(/[.!?]$/g, "\n") //replace .?! with enter
.replace(/[().'"]/g, "") //remove special characters
.replace(/\n+/g, "\n"); //make sure there is only one enter
},
});
Expand Down

0 comments on commit 5730e24

Please sign in to comment.