Skip to content

Commit 4402ad0

Browse files
Update src/modules/quoiFeur/quoiFeur.helpers.ts
Co-authored-by: Sam Degueldre <[email protected]>
1 parent 86b679c commit 4402ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/quoiFeur/quoiFeur.helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { removeEmoji, removePunctuation } from '../../helpers/regex.helper';
1313
const ONE_MINUTE = 1 * 60 * 1000;
1414
const MUTED_BY_BOT = 'Muted by bot';
1515

16-
const quoiDetectorRegex = new RegExp(/\b\s*[q][u][o][i]\s*$/i);
16+
const quoiDetectorRegex = /\bquoi\s*$/i;
1717
const endWithQuoi = (text: string) => quoiDetectorRegex.test(removeEmoji(removePunctuation(text)));
1818

1919
const reactWithFeur = async (message: Message) => {

0 commit comments

Comments
 (0)