Skip to content
Snippets Groups Projects
Commit 69d25c3d authored by Nikos Roussos's avatar Nikos Roussos
Browse files

Exclude mailto links from url rewriting

parent afe70e36
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -108,7 +108,7 @@ def generate_posts():
content)
 
content = re.sub(
r" href=[\"']([^/]+?)[\"']",
r" href=[\"'](?!mailto:)([^/]+?)[\"']",
' href="/{0}{1}"'.format(link, r"\1"),
content)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment