diff --git a/app.js b/app.js index eecb4d9..90b7184 100644 --- a/app.js +++ b/app.js @@ -307,6 +307,12 @@ var ngramTypeConfig = { // Remove spaces at starting of the phrase var typedPhrase = this.typedPhrase.trimStart(); + var substitutions = [ + ["’", "'"], + ]; + for (var subst of substitutions) { + typedPhrase = typedPhrase.replace(subst[0], subst[1]); + } if (!typedPhrase.length) { return; }