From 1a22152df64a571ab44cdb7c1929e113b7fe2feb Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 3 Dec 2020 00:30:40 +0000 Subject: [PATCH] fixed missing Misc reference --- src/js/script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index c0afc1407..3b0e8bf4a 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -616,7 +616,7 @@ function emulateLayout(event) { try { if (config.layout === "default") { - //override the caps lock modifier for the default layout if needed + //override the caps lock modifier for the default layout if needed if (config.capsLockBackspace && Misc.isASCIILetter(newEvent.key)) { replaceEventKey( newEvent, @@ -731,15 +731,15 @@ function punctuateWord(previousWord, currentWord, index, maxindex) { word = `"${word}"`; } else if ( Math.random() < 0.01 && - getLastChar(previousWord) != "," && - getLastChar(previousWord) != "." + Misc.getLastChar(previousWord) != "," && + Misc.getLastChar(previousWord) != "." ) { //1% chance to add single quotes word = `'${word}'`; } else if ( Math.random() < 0.01 && - getLastChar(previousWord) != "," && - getLastChar(previousWord) != "." + Misc.getLastChar(previousWord) != "," && + Misc.getLastChar(previousWord) != "." ) { //1% chance to add parentheses word = `(${word})`;