Skip to content

Commit 3220bb2

Browse files
authored
Merge pull request #131 from olehermanse/regex
rss.py: Fixed regex
2 parents 679c6c0 + 92411af commit 3220bb2

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)