From 81e3bc45361ac00f75327b9a7f00642f681ee62f Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Wed, 10 Nov 2021 02:03:20 +0300 Subject: [PATCH] Exclude regular expressions from MapCSS tag value. --- map_machine/mapcss.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/map_machine/mapcss.py b/map_machine/mapcss.py index bb95622..0e1108f 100644 --- a/map_machine/mapcss.py +++ b/map_machine/mapcss.py @@ -103,6 +103,10 @@ class MapCSSWriter: """ elements: dict[str, str] = {} + for value in matcher.tags.values(): + if value.startswith("^"): + return "" + clean_shapes = matcher.get_clean_shapes() if clean_shapes: elements["icon-image"] = (