From 92411af4a7d0b023e4ae4d388114537324ae174d Mon Sep 17 00:00:00 2001 From: Ole Herman Schumacher Elgesem Date: Wed, 1 Apr 2026 14:22:23 +0200 Subject: [PATCH] rss.py: Fixed regex AFAICT this regex was intended to allow $ or - or _, but instead allowed all all characters from $ to _. Signed-off-by: Ole Herman Schumacher Elgesem --- examples/rss/rss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rss/rss.py b/examples/rss/rss.py index bc93de1..7364da5 100755 --- a/examples/rss/rss.py +++ b/examples/rss/rss.py @@ -170,7 +170,7 @@ def _is_unix_file(self, path): def _is_url(self, path): return ( re.search( - r"^http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+", + r"^http[s]?://(?:[a-zA-Z]|[0-9]|[-\$_\@\.\&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+", path, ) is not None