fix: isExternal check with malformed URL + tests by jhildenbiddle · Pull Request #1510 · docsifyjs/docsify

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)

  • Bugfix

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

You have tested in the following browsers: (Providing a detailed version will be better.)

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE