upgrade to wanikana 2.2.3 (fixes #42)
This commit is contained in:
parent
c9623276e1
commit
61dde5b3b7
@ -27,5 +27,14 @@ function jpIsKana(c) {
|
||||
}
|
||||
|
||||
function jpKatakanaToHiragana(text) {
|
||||
return wanakana._katakanaToHiragana(text);
|
||||
let result = '';
|
||||
for (const c of text) {
|
||||
if (wanakana.isKatakana(c)) {
|
||||
result += wanakana.toHiragana(c);
|
||||
} else {
|
||||
result += c;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
2
ext/mixed/lib/wanakana.min.js
vendored
2
ext/mixed/lib/wanakana.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user