cyrillic
This commit is contained in:
parent
4c21e22426
commit
2128672378
4 changed files with 7 additions and 7 deletions
|
@ -181,7 +181,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
|||
tag["target"] = "_blank"
|
||||
tag["rel"] = "nofollow noopener noreferrer"
|
||||
|
||||
if re.match("https?://\S+", str(tag.string), flags=re.A):
|
||||
if re.fullmatch("https?://\S+", str(tag.string), flags=re.A):
|
||||
try: tag.string = tag["href"]
|
||||
except: tag.string = ""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue