Skip to content

Commit eaac4ac

Browse files
authoredFeb 24, 2017
Fixes #36
1 parent 4d42557 commit eaac4ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎rezeptionistin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def debug(self, msg):
110110
logging.debug(msg)
111111

112112
def geturlsfrommsg(self, message):
113-
url = re.findall("(?P<url>https?://[^\s]+)", message)
113+
url = re.findall("(?P<url>http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)", message)
114114
return url
115115

116116
def getpage(self, url):

0 commit comments

Comments
 (0)
Please sign in to comment.