Skip to content

Commit

Permalink
Account for all first row small kana and ヮゎ
Browse files Browse the repository at this point in the history
  • Loading branch information
bewizible committed Dec 21, 2024
1 parent c9ca2ec commit 9da506d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/back.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
const kana = `{{kana:ExpressionFurigana}}` || `{{ExpressionReading}}`;
return (
kana !== null &&
kana.replace(/[ャュョィゃゅょぃ]/g, "").length === pitchNumber
kana.replace(/[ァゥェォャュョィヮぁぅぇぉゃゅょぃゎ]/g, "").length === pitchNumber
);
}

Expand Down Expand Up @@ -197,7 +197,7 @@
let currentChar = "";
let nextChar = "";
const groupedMoras = [];
const check = ["ャ", "ュ", "ョ", "ィ", "ゃ", "ゅ", "ょ", "ぃ"];
const check = ["ァ", "ゥ", "ェ", "ォ", "ャ", "ュ", "ョ", "ィ", "ヮ", "ぁ", "ぅ", "ぇ", "ぉ", "ゃ", "ゅ", "ょ", "ぃ", "ゎ"];

for (let i = 0; i < kana.length; i++) {
currentChar = kana[i];
Expand Down

0 comments on commit 9da506d

Please sign in to comment.