mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-30 15:31:13 -05:00
SpiffyTitles: Avoid urlRegularExpression error.
This commit is contained in:
parent
01f0fac281
commit
b1463364aa
@ -559,7 +559,10 @@ class SpiffyTitles(callbacks.Plugin):
|
|||||||
"""
|
"""
|
||||||
Find the first string that looks like a URL from the message
|
Find the first string that looks like a URL from the message
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
url_re = self.registryValue("urlRegularExpression", channel)
|
url_re = self.registryValue("urlRegularExpression", channel)
|
||||||
|
except NonExistentRegistryEntry:
|
||||||
|
url_re = self.registryValue("urlRegularExpression")
|
||||||
if not url_re:
|
if not url_re:
|
||||||
url_re = utils.web._httpUrlRe
|
url_re = utils.web._httpUrlRe
|
||||||
matches = re.findall(url_re, input)
|
matches = re.findall(url_re, input)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user