From 629dd9784c126ddb22bf6503ae1a7c7ea548ba04 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 6 May 2022 19:36:48 +0200 Subject: Tweak "touchup_plaintext" syntax for bare links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So that I can add an ad-hoc syntax for captioned links and reinvent Markdown 🤦 --- helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpers.py') diff --git a/helpers.py b/helpers.py index 11a13ca..3b0fee1 100644 --- a/helpers.py +++ b/helpers.py @@ -137,7 +137,7 @@ def read_concerts(filename): _TOUCHUPS = ( (re.compile('([0-9])(st|nd|rd|th|er|ère|nde|ème)'), r'\1\2'), - (re.compile('(https://[^ ]+)'), r'\1'), + (re.compile('<(https?://[^ ]+)>'), r'\1'), (re.compile('([^ ]+@[^ ]+)'), r'\1'), ) -- cgit v1.2.3