Adv item search: make prop/func resolution case-insensitive
This commit is contained in:
parent
c83216921e
commit
471888b558
1 changed files with 2 additions and 2 deletions
|
@ -755,13 +755,13 @@ const ExprParser = (function() {
|
|||
case 2:
|
||||
return new StrLitTerm(ast.children[0].token.value);
|
||||
case 3:
|
||||
const fn = builtInFuncs[ast.children[0].token.id];
|
||||
const fn = builtInFuncs[ast.children[0].token.id.toLowerCase()];
|
||||
if (!fn) {
|
||||
throw new Error(`Unknown function: ${ast.children[0].token.id}`);
|
||||
}
|
||||
return new FnCallTerm(fn, trans(ast.children[2]));
|
||||
case 4: {
|
||||
const prop = builtInProps[ast.children[0].token.id];
|
||||
const prop = builtInProps[ast.children[0].token.id.toLowerCase()];
|
||||
if (!prop) {
|
||||
throw new Error(`Unknown property: ${ast.children[0].token.id}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue