diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js index fdd06eb..e118ec3 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js @@ -692,7 +692,7 @@ TokenStream.prototype.isConst = function () { var i = startPos; for (; i < this.expression.length; i++) { var c = this.expression.charAt(i); - if (c.toUpperCase() === c.toLowerCase()) { + if (c.toUpperCase() === c.toLowerCase() && !ADDITIONAL_VARCHARS.includes(c)) { if (i === this.pos || (c !== '_' && c !== '.' && (c < '0' || c > '9'))) { break; }