From 9f2b08b938cb84f415043c8b0eacb925d61cdd48 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sun, 8 Oct 2023 16:31:01 +0200 Subject: [PATCH] =?UTF-8?q?Fixing=20"Unknown=20variable=20=E2=88=9E."=20me?= =?UTF-8?q?ssage.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It occured when using a domain with the infinity symbol. --- LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/expr-eval.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }