From 06ffd076441a8e758e56738784950b094bd48035 Mon Sep 17 00:00:00 2001 From: evtn Date: Wed, 14 Jul 2021 19:21:15 +0700 Subject: [PATCH] fixed colon in attributes --- soda/__version__.py | 2 +- soda/tags.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/soda/__version__.py b/soda/__version__.py index d7f32ea..0804381 100755 --- a/soda/__version__.py +++ b/soda/__version__.py @@ -7,7 +7,7 @@ __title__ = 'soda-svg' __description__ = 'Fast SVG generation tool' -__version__ = '0.1.3' +__version__ = '0.1.4' __author__ = 'evtn' __author_email__ = 'g@evtn.ru' __license__ = 'MIT License' diff --git a/soda/tags.py b/soda/tags.py index 0479675..c6e85c5 100644 --- a/soda/tags.py +++ b/soda/tags.py @@ -18,7 +18,7 @@ def escape(text: str) -> str: def identifier(text: str) -> str: - return "".join(filter(lambda x: x == "-" or x.isalnum(), str(text))) + return "".join(filter(lambda x: x in ["-", ":"] or x.isalnum(), str(text))) class MetaTag(type):