taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit f90d7075c846d2a40c0f1b2b5022352f886db2df
parent 9549f8357d58288c923cf3aa51ca5ba08f601c04
Author: Florian Dold <florian@dold.me>
Date:   Thu, 27 Jan 2022 21:38:44 +0100

fix regex

Diffstat:
Mtalermerchantdemos/blog/content.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/talermerchantdemos/blog/content.py b/talermerchantdemos/blog/content.py @@ -100,7 +100,7 @@ def add_from_html(resource_name, lang): else: title = title_el.get_text().strip() slug = title.replace(" ", "_") - slug = re.sub(r'[^a-zA-Z0-9_]*', "-", slug) + slug = re.sub(r'[^a-zA-Z0-9_]+', "-", slug) teaser = soup.find("p", attrs={"id": ["teaser"]}) if teaser is None: