aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/japanese.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js/japanese.js')
-rw-r--r--ext/mixed/js/japanese.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/mixed/js/japanese.js b/ext/mixed/js/japanese.js
index 44db4b8c..8d69c180 100644
--- a/ext/mixed/js/japanese.js
+++ b/ext/mixed/js/japanese.js
@@ -92,9 +92,13 @@ function jpIsKana(c) {
);
}
-function jpIsJapaneseText(text) {
+function jpIsCharacterJapanese(c) {
+ return jpIsKanji(c) || jpIsKana(c);
+}
+
+function jpIsAnyCharacterJapanese(text) {
for (const c of text) {
- if (jpIsKanji(c) || jpIsKana(c)) {
+ if (jpIsCharacterJapanese(c)) {
return true;
}
}