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

Autolinker: Improved URL regex #1842

Merged
merged 1 commit into from
Apr 19, 2019

Conversation

RunDevelopment
Copy link
Member

This PR adds some improvements to the URL pattern of Autolinker:

  1. Allow @ anywhere.
  2. URL parameter shouldn't contain a hash #.

This fixes #1841.

@RunDevelopment RunDevelopment merged commit eb28b62 into PrismJS:master Apr 19, 2019
@RunDevelopment RunDevelopment deleted the Improved-URL-regex branch April 19, 2019 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autolinker doesn't match URLs with "@" in them
1 participant