Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registerCustomProtocol breaks e-mail linkification #414

Closed
t3chguy opened this issue Nov 21, 2022 · 1 comment · Fixed by #417
Closed

registerCustomProtocol breaks e-mail linkification #414

t3chguy opened this issue Nov 21, 2022 · 1 comment · Fixed by #417

Comments

@t3chguy
Copy link

t3chguy commented Nov 21, 2022

Using registerCustomProtocol("matrix", true); causes [email protected] to not be linkified as an email, instead only example.com get linkified.

Downstream issue element-hq/element-web#23806
Possibly related #410

hanazuki added a commit to hanazuki/linkifyjs that referenced this issue Dec 16, 2022
This patch fixes the parser so that it can capture an email address
whose local part matches a scheme string, e.g. 'http' or 'mailto'.

Fixes nfrasser#414
hanazuki added a commit to hanazuki/linkifyjs that referenced this issue Dec 16, 2022
This patch fixes the parser so that it can capture an email address
whose local part matches a scheme string, e.g. 'http' or 'mailto'.

Fixes nfrasser#414
@hanazuki
Copy link
Contributor

It seems the same problem happens for the predefined protocols such as http and mailto, that is, [email protected] is not linkified as email. I just submitted a pull request to fix this issue: #417

nfrasser pushed a commit that referenced this issue Jan 3, 2023
This patch fixes the parser so that it can capture an email address
whose local part matches a scheme string, e.g. 'http' or 'mailto'.

Fixes #414
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants