diff --git a/static/js/lang.js b/static/js/lang.js index 6ecc102..954b44d 100644 --- a/static/js/lang.js +++ b/static/js/lang.js @@ -89,7 +89,9 @@ class Wordifier { let acc = ''; acc += this.reader.readUntil(c => c == endChar); while (acc.endsWith('\\') || !this.reader.hasNext()) { - acc += this.reader.readUntil(c => c != endChar); + acc = acc.substr(0, acc.length - 1); + this.reader.next(); // endChar + acc += endChar + this.reader.readUntil(c => c == endChar); } this.reader.next(); // throw away closing char this.tokens.push('"' + acc);