Skip to content

Commit

Permalink
Support optional mailto: to render clickable mail links
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 16, 2024
1 parent b2d9efb commit 8aaedc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/feature_info_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ def render_value(self, value, htmlEscape=True):
))
# E-Mails
rules.append((
r'^([\w\-\.]+@([\w-]+\.)+[\w-]{2,4})$',
lambda m: m.expand(r'<a href="mailto:\1">\1</a>')
r'^(mailto:)?([\w\-\.]+@([\w-]+\.)+[\w-]{2,63})$',
lambda m: m.expand(r'<a href="mailto:\2">\2</a>')
))
# Attachments
rules.append((
Expand Down

0 comments on commit 8aaedc2

Please sign in to comment.