not updating iOffset if stop on word is enabled

removed console log
This commit is contained in:
Miodec 2023-03-21 15:08:50 +01:00
parent fd0120d075
commit e9a20f2537

View file

@ -1064,9 +1064,8 @@ $("#wordsInput").on("input", (event) => {
}
let iOffset = 0;
if (/.+ .+/.test(inputValue)) {
if (Config.stopOnError !== "word" && /.+ .+/.test(inputValue)) {
iOffset = inputValue.indexOf(" ") + 1;
console.log("iOffset", iOffset);
}
for (let i = diffStart; i < inputValue.length; i++) {
// passing realInput to allow for correct Korean character compilation