boobot: Ignore NBSP in URLs
This commit is contained in:
parent
8825072829
commit
bba7898561
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ class Boobot(SingleServerIRCBot):
|
|||
for m in re.findall('([\w\d_\-]+@\w+)', text):
|
||||
for msg in self.on_boobid(m):
|
||||
self.send_message(msg, channel)
|
||||
for m in re.findall('(https?://\S+)', text):
|
||||
for m in re.findall(u'(https?://[^\s\xa0+]+)', text):
|
||||
for msg in self.on_url(m):
|
||||
self.send_message(msg, channel)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue