[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-merchant-demos] branch master updated: fix regex
From: |
gnunet |
Subject: |
[taler-taler-merchant-demos] branch master updated: fix regex |
Date: |
Thu, 27 Jan 2022 21:38:49 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository taler-merchant-demos.
The following commit(s) were added to refs/heads/master by this push:
new f90d707 fix regex
f90d707 is described below
commit f90d7075c846d2a40c0f1b2b5022352f886db2df
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jan 27 21:38:44 2022 +0100
fix regex
---
talermerchantdemos/blog/content.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/talermerchantdemos/blog/content.py
b/talermerchantdemos/blog/content.py
index 2f7d973..23fb77f 100644
--- 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:
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-merchant-demos] branch master updated: fix regex,
gnunet <=