aboutsummaryrefslogtreecommitdiff
path: root/util/japanese.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/japanese.ts')
-rw-r--r--util/japanese.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/japanese.ts b/util/japanese.ts
index 8814e11..d32714c 100644
--- a/util/japanese.ts
+++ b/util/japanese.ts
@@ -121,7 +121,8 @@ String.prototype.katakanaOnly = function(strict = false) {
}
String.prototype.kanjiOnly = function(strict = false) {
- return stringOnly(this as string, (key, val) => {
+ let temp = this.replaceAll("々", "力"); // kanjiOnly should return true for kanji repeat mark as well
+ return stringOnly(temp, (key, val) => {
if (key == UnicodeRange.JapaneseKanji)
return StringOnlyReturnValue.TallyAdd; // count kanji characters
else if (!strict && key.startsWith("any-"))