-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
fix: isExternal check with malformed URL + tests #1510
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/fdto751ms |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 10d302f:
|
Closing #1509 in favor of this PR which 1) fixes the regular expression used in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Fix #1477. Fix #1126. Follow-up to #1489.
Summary
Handles malformed remote URLs that contain more than two forward slashes (e.g.,
////////domain.com/file.md
)What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
You have tested in the following browsers: (Providing a detailed version will be better.)