Skip to content

Commit

Permalink
chore: bump typescript to 5.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Sep 9, 2024
1 parent 99576b9 commit c1ac076
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"prisma": "^5.19.1",
"standard-changelog": "^6.0.0",
"tsx": "^4.19.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"engines": {
"node": ">=22.0.0"
},
"packageManager": "pnpm@9.4.0"
"packageManager": "pnpm@9.10.0"
}
42 changes: 21 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/classes/Detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Detector {
static nicknameRegexp = RegExp(`[${blocklist}]`, 'giu');
async detectNickname(member: GuildMember) {
const cleanNickname = member.displayName.replaceAll(/[.\-_ /\\()[\]]/giu, '');
const result = [...cleanNickname.matchAll(Detector.nicknameRegexp)];
const result = Detector.nicknameRegexp.exec(cleanNickname) ?? [];

const clientMember = await member.guild.members.fetchMe();
if (
Expand Down

0 comments on commit c1ac076

Please sign in to comment.