mirror of https://github.com/caronc/apprise
chore: rename var to not clash with re-used one
parent
f7131e54b1
commit
7ebd533d10
|
@ -617,14 +617,14 @@ class NotifySlack(NotifyBase):
|
||||||
# Support <url|desc>, <url> entries
|
# Support <url|desc>, <url> entries
|
||||||
for match in self._re_url_support.findall(body):
|
for match in self._re_url_support.findall(body):
|
||||||
# Swap back any ampersands previously updaated
|
# Swap back any ampersands previously updaated
|
||||||
url = match[1].replace('&', '&')
|
url_ = match[1].replace('&', '&')
|
||||||
desc = match[2].strip()
|
desc = match[2].strip()
|
||||||
|
|
||||||
# Update our string
|
# Update our string
|
||||||
body = re.sub(
|
body = re.sub(
|
||||||
re.escape(match[0]),
|
re.escape(match[0]),
|
||||||
'<{url}|{desc}>'.format(url=url, desc=desc)
|
'<{url}|{desc}>'.format(url=url_, desc=desc)
|
||||||
if desc else '<{url}>'.format(url=url),
|
if desc else '<{url}>'.format(url=url_),
|
||||||
body,
|
body,
|
||||||
re.IGNORECASE)
|
re.IGNORECASE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue