We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9345fb commit 3d6589cCopy full SHA for 3d6589c
src/modules/rep.ts
@@ -19,7 +19,8 @@ export class RepModule extends Module {
19
20
MAX_REP = 3;
21
22
- THANKS_REGEX = /\b(?:thank|thanks|thx|cheers|thanx|thnks|ty|tysm|tks|tkx)\b/i;
+ // The Chinese is outside the group on purpose, because CJK languages don't have word bounds. Therefore we only look for key characters
23
+ THANKS_REGEX = /\b(?:thank|thanks|thx|cheers|thanx|thnks|ty|tysm|tks|tkx|danke|merci|gracias|grazie|xiexie)\b|谢/i;
24
25
async getOrMakeUser(user: User) {
26
let ru = await RepUser.findOne(
0 commit comments