mondo: strings now get type "string" to be discernable from plain variables
This commit is contained in:
parent
60dd8bd763
commit
ffe831d24b
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ export class MondoRunner {
|
||||||
ast.value = Number(ast.value);
|
ast.value = Number(ast.value);
|
||||||
} else if (['quotes_double', 'quotes_single'].includes(ast.type)) {
|
} else if (['quotes_double', 'quotes_single'].includes(ast.type)) {
|
||||||
ast.value = ast.value.slice(1, -1);
|
ast.value = ast.value.slice(1, -1);
|
||||||
ast.type = 'plain'; // is this problematic?
|
ast.type = 'string';
|
||||||
}
|
}
|
||||||
return this.evaluator(ast, scope);
|
return this.evaluator(ast, scope);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue