Be backwards compatible for now.
This commit is contained in:
parent
4b8256e0f8
commit
0233c523ea
@ -554,9 +554,19 @@ carto.Parser = function Parser(env) {
|
||||
save();
|
||||
var key, op, val;
|
||||
if (! $('[')) return;
|
||||
if (key = $(/^[a-zA-Z0-9\-_]+/) || $(this.entities.quoted) || $(this.entities.variable) || $(this.entities.field)) {
|
||||
if (key = $(/^[a-zA-Z0-9\-_]+/) ||
|
||||
$(this.entities.quoted) ||
|
||||
$(this.entities.variable) ||
|
||||
$(this.entities.field)) {
|
||||
// TODO: remove at 1.0.0
|
||||
if (key instanceof tree.Quoted) {
|
||||
key = new tree.Field(key.toString());
|
||||
}
|
||||
if ((op = $(this.entities.comparison)) &&
|
||||
(val = $(this.entities.quoted) || $(this.entities.variable) || $(this.entities.dimension) || $(this.entities.field))) {
|
||||
(val = $(this.entities.quoted) ||
|
||||
$(this.entities.variable) ||
|
||||
$(this.entities.dimension) ||
|
||||
$(this.entities.field))) {
|
||||
if (! $(']')) return;
|
||||
if (!key.is) key = new tree.Field(key);
|
||||
return new tree.Filter(key, op, val, memo, env.filename);
|
||||
|
Loading…
Reference in New Issue
Block a user