Support : in column names
This commit is contained in:
parent
f4722f516e
commit
22f5d0cc45
@ -414,7 +414,7 @@ carto.Parser = function Parser(env) {
|
|||||||
// needs to be careful to warn when unsupported operations are used.
|
// needs to be careful to warn when unsupported operations are used.
|
||||||
field: function() {
|
field: function() {
|
||||||
if (! $('[')) return;
|
if (! $('[')) return;
|
||||||
var field_name = $(/(^[a-zA-Z0-9\-_]+)/);
|
var field_name = $(/(^[\:a-zA-Z0-9\-_]+)/);
|
||||||
if (! $(']')) return;
|
if (! $(']')) return;
|
||||||
if (field_name) return new tree.Field(field_name[1]);
|
if (field_name) return new tree.Field(field_name[1]);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user