Support : in column names

This commit is contained in:
Tom MacWright 2012-12-20 17:49:11 -05:00
parent f4722f516e
commit 22f5d0cc45

View File

@ -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]);
}, },