User:Opencooper/showKanji-dev.js: Difference between revisions

Content deleted Content added
always try looking for a hyphen in reading
m add interpunct
Line 152:
var kanjiAuxillary = kanjiStripped.replace(/\w/g, "");
 
kanjiRegexes.latinOnly = /^[A-Za-z0-9\-.?!/,:;@#$%&+=*'" ]+$/;
kanjiRegexes.kanaOnly = new RegExp("^[ぁ-ゔァ-ヴー" + kanjiAuxillary + "]+$");
kanjiRegexes.hiraganaOnly = new RegExp("^[ぁ-ゔーA-Za-z" + kanjiAuxillary + "]+$");