Rich text: Do not call link text heuristic for mailto:

This commit is contained in:
Raphael Michel
2021-01-12 17:31:58 +01:00
parent 1dab5149d4
commit a856f29426
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ from pretix.base.templatetags.rich_text import (
("[Foo](/foo)",
'<a href="http://example.com/foo" rel="noopener" target="_blank">Foo</a>'),
("mail@example.org",
'<a href="mailto:mail@example.org">mailto:mail@example.org</a>'),
'<a href="mailto:mail@example.org">mail@example.org</a>'),
# Test truelink_callback
('<a href="https://evilsite.com">Evil Site</a>',
'<a href="https://evilsite.com" rel="noopener" target="_blank">Evil Site</a>'),