keithmifsud / jekyll-target-blank

Automatically opens external links in a new browser for Jekyll Pages, Posts and Docs.
MIT License
105 stars 19 forks source link

handle URI::InvalidURIError by not processing the link #62

Open pirafrank opened 2 years ago

pirafrank commented 2 years ago

Do not throw exception for unparsable URLs with particular query params, javascript bookmarklet, etc. Added two file for testing purpose. No need to check for output in spec files, because if an exception is thrown tests will fail anyway.