From 8c8f303429d015867772f342c420a264e150bd90 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 22 Jun 2010 13:06:55 +0000 Subject: [PATCH] + allow empty strings in expressions e.g [name] <> '' --- include/mapnik/expression_grammar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/expression_grammar.hpp b/include/mapnik/expression_grammar.hpp index 263a62682..b78751c70 100644 --- a/include/mapnik/expression_grammar.hpp +++ b/include/mapnik/expression_grammar.hpp @@ -213,7 +213,7 @@ struct expression_grammar : qi::grammar ; attr %= '[' >> +(char_ - ']') >> ']'; - ustring %= '\'' >> no_skip[+~char_('\'')] >> '\''; + ustring %= '\'' >> no_skip[*~char_('\'')] >> '\''; } qi::real_parser > strict_double;