Fixing "Unknown variable ∞." message.

It occured when using a domain with the infinity symbol.
This commit is contained in:
Ad5001 2023-10-08 16:31:01 +02:00
parent 3039aade29
commit 9f2b08b938
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -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;
}