Skip to content

Commit 459a1eb

Browse files
committed
Support optional mailto: to render clickable mail links
1 parent 23e965b commit 459a1eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/feature_info_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ def render_value(self, value, htmlEscape=True):
555555
))
556556
# E-Mails
557557
rules.append((
558-
r'^([\w\-\.]+@([\w-]+\.)+[\w-]{2,4})$',
559-
lambda m: m.expand(r'<a href="mailto:\1">\1</a>')
558+
r'^(mailto:)?([\w\-\.]+@([\w-]+\.)+[\w-]{2,63})$',
559+
lambda m: m.expand(r'<a href="mailto:\2">\2</a>')
560560
))
561561
# Attachments
562562
rules.append((

0 commit comments

Comments
 (0)