Skip to content

Commit

Permalink
Use isCodePointInRange instead of isCodePointInRanges
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Nov 26, 2024
1 parent 556df35 commit 765a8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/language/ja/japanese.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ export function normalizeCJKCompatibilityCharacters(text) {
let result = '';
for (let i = 0; i < text.length; i++) {
const codePoint = text[i].codePointAt(0);
result += codePoint && isCodePointInRanges(codePoint, [CJK_COMPATIBILITY]) ? text[i].normalize('NFKD') : text[i];
result += codePoint && isCodePointInRange(codePoint, CJK_COMPATIBILITY) ? text[i].normalize('NFKD') : text[i];
}
return result;
}
Expand Down

0 comments on commit 765a8b2

Please sign in to comment.