diff options
author | 2019-09-27 20:36:17 +0700 | |
---|---|---|
committer | 2019-09-27 20:36:17 +0700 | |
commit | 9723b391d58ff29be41950b9c6c2ceca04e6b107 (patch) | |
tree | f1a084a8cb0ff3b044cc634e1457de1458ef86ac /source/libs/utils.ts | |
parent | 053164fef540a00549bc5b052e0bad5fa102247b (diff) | |
download | refined-github-9723b391d58ff29be41950b9c6c2ceca04e6b107.tar.gz refined-github-9723b391d58ff29be41950b9c6c2ceca04e6b107.tar.zst refined-github-9723b391d58ff29be41950b9c6c2ceca04e6b107.zip |
Update and lint (#2464)19.9.27
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r-- | source/libs/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts index 1eed991b..e11a8071 100644 --- a/source/libs/utils.ts +++ b/source/libs/utils.ts @@ -119,7 +119,7 @@ export function getOP(): string { } export function compareNames(username: string, realname: string): boolean { - return username.replace(/-/g, '').toLowerCase() === realname.normalize('NFD').replace(/[\u0300-\u036f\W.]/g, '').toLowerCase(); + return username.replace(/-/g, '').toLowerCase() === realname.normalize('NFD').replace(/[\u0300-\u036F\W.]/g, '').toLowerCase(); } export async function poll<T>(callback: () => T, frequency: number): Promise<T> { |