[core][graphspell][js] fix regex for \w substitution