Allow auto-correction of "n" to "ん" at end of input for Reading quiz
gremlinn opened this issue · comments
gremlinn commented
Duncan Bay commented
From kaniwani
function addTerminalN(str = '') {
return /n/i.test(str.slice(-1)) ? `${str.slice(0, -1)}ん` : str;
}
:)
Juno Dark commented
Yeah that'd do it :) If you want to submit a pull request I'll happily merge it in.