Skip to content

Conversation

@kairosci
Copy link

This PR fixes a bug where mailto: links containing hyphens in the domain part were truncated (e.g., [email protected] -> user@uni).

The Fix

Modified the regex in web/autolinker.js to explicitly allow hyphens (-) in the domain part of email addresses, while maintaining the exclusion of other punctuation.

Verification

Fixes #20557.

@kairosci kairosci changed the title Fix bug #20557: Mailto links truncated at dash fix: Fix mailto links truncated at dash Jan 10, 2026
@nicolo-ribaudo
Copy link
Contributor

I also noticed a PDF with a mislinked address with a dash before the @ ([email protected]) a couple days ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Some mailto links with dash inside are not shown correctly

3 participants