Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit 76c6607

Browse files
authored
fix(words): matching special unicode quotes #460 (#463)
1 parent d4d8b94 commit 76c6607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/words.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const words = async (message: Message) => {
4343
// Utility function for removing special characters
4444
function stripSpecialCharacters(str: string) {
4545
// match special symbols and replace with ' '
46-
str = str.replace(/[.,/#!$%?&*;:{}=\-_'"~()]/g, ' ');
46+
str = str.replace(/[.,/#!$%?&*;:{}=\-_'"~()]/g, ' ');
4747
// match double whitespace with single space for cleaner string
4848
return str.replace(/\s{2,}/g, ' ');
4949
}

0 commit comments

Comments
 (0)