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
Error when parsing single-quoted URL strings #20
Comments
Hmm this is an interesting one. Note that GitHub's own autolinking does the same thing: https://www.google-analytics.com/analytics.js','ga A couple of different ideas to fix this:
Would love to hear your thoughts. Do you have any test cases for lychee where we could see if one of the options works better? |
We are in good company. 😆 Option 1 sounds like a good idea to me. I'd say that Option 2 sounds more complicated because we could easily miss delimiters or edge-cases. For instance
Apart from the Google Analytics link above, no. I'll keep an eye out for more. |
I've updated the PR at #21 according to option 1. |
Released in 0.7.0 🎉: https://github.com/robinst/linkify/blob/main/CHANGELOG.md#070---2021-05-18 |
Yay. Thanks! |
There is a bug with single-quoted URLs.
Input:
Expected:
Actually extracted link:
Downstream issue in lychee: lycheeverse/lychee#230
The text was updated successfully, but these errors were encountered: