Skip to content

Add assertUrl method

Choose a tag to compare

@terodox terodox released this 06 Jun 00:03
· 28 commits to master since this release

This update brings a new method assertUrl. This method will first assertString then use a regex to validate the URL.

Why not use the modern URL class you ask? I am aiming to maintain compatibility with IE11 and the URL polyfill is too big for me to want to bundle with this micro-library.