Skip to content

Commit 92411af

Browse files
committed
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 <ole@northern.tech>
1 parent 679c6c0 commit 92411af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/rss/rss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _is_unix_file(self, path):
170170
def _is_url(self, path):
171171
return (
172172
re.search(
173-
r"^http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+",
173+
r"^http[s]?://(?:[a-zA-Z]|[0-9]|[-\$_\@\.\&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+",
174174
path,
175175
)
176176
is not None

0 commit comments

Comments
 (0)