Skip to content

Commit 979c1b5

Browse files
authored
Merge pull request #94 from Gerrit0/fix-thanks-regex
fix: Thanks regex needs \b on both sides
2 parents e417a09 + 25f9c66 commit 979c1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/rep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class RepModule extends Module {
2020
MAX_REP = 3;
2121

2222
// all messages have to be fully lowercase
23-
THANKS_REGEX = /(?:thanks|thx|cheers|thanx|ty|tks|tkx)\b/i;
23+
THANKS_REGEX = /\b(?:thanks|thx|cheers|thanx|ty|tks|tkx)\b/i;
2424

2525
async getOrMakeUser(user: User) {
2626
let ru = await RepUser.findOne(

0 commit comments

Comments
 (0)