Created
December 2, 2011 22:54
-
-
Save mahemoff/1425220 to your computer and use it in GitHub Desktop.
check if URL is local (no scheme identifier)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isLocal = (url) -> ! /^[a-zA-Z0-9+-\.]+:/.test(url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment