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

Content deleted Content added
add
always try looking for a hyphen in reading
Line 149:
// Need to add hyphen escaped since it has special behavior in regex classes
// TODO: Just escape $kanji early instead, like we did before?
if (/-/.test(kanji)) { kanjiStripped += "\\-"; }
var kanjiAuxillary = kanjiStripped.replace(/\w/g, "");