No need to perform a regular expression replace on the `phoneticValue` variable as it is only ever assigned a translated value from the `alphabet` array and will therefore only ever contain the characters to which the regular expression expects. The variable is also emptied each time generate() is run; if there is nothing to translate when a keyup event is fired, the variable remains empty.
No need to perform a regular expression replace on the `phoneticValue` variable as it is only ever assigned a translated value from the `alphabet` array and will therefore only ever contain the characters to which the regular expression expects. The variable is also emptied each time generate() is run; if there is nothing to translate when a keyup event is fired, the variable remains empty.

bastones/phoneticgenerator,bastones/phoneticgenerator