aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display-generator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-10 19:24:24 -0400
committerGitHub <noreply@github.com>2020-03-10 19:24:24 -0400
commitf7bbcb6df403ca565b6dcf3ab468967f830b527d (patch)
treea466132d1e0d69a8e91a0cd52414402778d3eaa6 /ext/mixed/js/display-generator.js
parent36c55f0b17e7c2697543edc38e444d01da4f4a5c (diff)
parent72219ba3530f9da02d3ec1d704baac6f88863682 (diff)
Merge pull request #408 from toasted-nutbread/use-code-point
Replace charCodeAt and fromCharCode with codePointAt and fromCodePoint
Diffstat (limited to 'ext/mixed/js/display-generator.js')
-rw-r--r--ext/mixed/js/display-generator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/display-generator.js b/ext/mixed/js/display-generator.js
index d7e77cc0..470e2a15 100644
--- a/ext/mixed/js/display-generator.js
+++ b/ext/mixed/js/display-generator.js
@@ -298,7 +298,7 @@ class DisplayGenerator {
}
static _isCharacterKanji(c) {
- const code = c.charCodeAt(0);
+ const code = c.codePointAt(0);
return (
code >= 0x4e00 && code < 0x9fb0 ||
code >= 0x3400 && code < 0x4dc0