We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84588b commit 9818025Copy full SHA for 9818025
plugins/pretokenise.js
@@ -196,7 +196,8 @@
196
resultCode += "\n";
197
if (tok.str==")" || tok.str=="}" || tok.str=="]") brackets--;
198
// if we have a token for something, use that - else use the string
199
- if (pretokeniseStrings && tok.type == "STRING") {
+ if (pretokeniseStrings && tok.type == "STRING" &&
200
+ tok.value.split("").reduce((r,ch) => r&&(ch.charCodeAt(0)<256), true)/*all 8 bit*/) {
201
let str = tok.value; // get string value
202
lastIdx = tok.endIdx; // get next token
203
lastlastTok = lastTok;
0 commit comments