$.urlInternalHost('www');
urlInternalRegExp: /^https:\/\/(?:www\.)?benalman.com\//i
Internal?
$.isUrlInternal("./"): true
$.isUrlInternal("../"): true
$.isUrlInternal("?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("?test=&a=1&a=2&b=boo#test-anchor"): true
$.isUrlInternal("foo"): true
$.isUrlInternal("foo#test-anchor"): true
$.isUrlInternal("foo/"): true
$.isUrlInternal("foo/bar.html?baz=123"): true
$.isUrlInternal("bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("/foo"): true
$.isUrlInternal("/foo/"): true
$.isUrlInternal("/foo/bar.html?baz=123"): true
$.isUrlInternal("/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("https://benalman.com/"): true
$.isUrlInternal("http://www.benalman.com/"): false
$.isUrlInternal("http://www.benalman.com/foo#test-anchor"): false
$.isUrlInternal("http://www.benalman.com/foo/#test-anchor"): false
$.isUrlInternal("https://benalman.com/foo/bar.html"): true
$.isUrlInternal("https://benalman.com/foo/bar.html?baz=123"): true
$.isUrlInternal("https://benalman.com/foo/bar.html?baz=123&test="): true
$.isUrlInternal("https://benalman.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("https://benalman.com:81/"): false
$.isUrlInternal("http://foo.benalman.com/"): false
$.isUrlInternal("http://foo.benalman.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlInternal("https://foo.benalman.com/"): false
$.isUrlInternal("http://bar.benalman.com/"): false
$.isUrlInternal("https://benalman.com/"): true
$.isUrlInternal("https://www.benalman.com/"): true
$.isUrlInternal("https://google.com/"): false
$.isUrlInternal("https://google.com/foo/bar.html?baz=123&test="): false
$.isUrlInternal("https://google.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlInternal("#test-anchor"): undefined
$.isUrlInternal("mailto:spam@benalman.com"): undefined
$.isUrlInternal("javascript:alert('hello world')"): undefined
$.isUrlInternal("ftp://ftp.example.com/foo/bar"): undefined
$.isUrlInternal("irc://irc.example.com/foo/bar"): undefined
$.isUrlInternal("arbitrary://irc.example.com/foo/bar"): undefined
$.isUrlInternal("#"): undefined
$.isUrlInternal("#foo"): undefined
$.isUrlInternal("#test=&a=1&a=2&b=boo"): undefined
$.isUrlInternal("#baz=123"): undefined
External?
$.isUrlExternal("./"): false
$.isUrlExternal("../"): false
$.isUrlExternal("?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("?test=&a=1&a=2&b=boo#test-anchor"): false
$.isUrlExternal("foo"): false
$.isUrlExternal("foo#test-anchor"): false
$.isUrlExternal("foo/"): false
$.isUrlExternal("foo/bar.html?baz=123"): false
$.isUrlExternal("bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("/foo"): false
$.isUrlExternal("/foo/"): false
$.isUrlExternal("/foo/bar.html?baz=123"): false
$.isUrlExternal("/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("https://benalman.com/"): false
$.isUrlExternal("http://www.benalman.com/"): true
$.isUrlExternal("http://www.benalman.com/foo#test-anchor"): true
$.isUrlExternal("http://www.benalman.com/foo/#test-anchor"): true
$.isUrlExternal("https://benalman.com/foo/bar.html"): false
$.isUrlExternal("https://benalman.com/foo/bar.html?baz=123"): false
$.isUrlExternal("https://benalman.com/foo/bar.html?baz=123&test="): false
$.isUrlExternal("https://benalman.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("https://benalman.com:81/"): true
$.isUrlExternal("http://foo.benalman.com/"): true
$.isUrlExternal("http://foo.benalman.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlExternal("https://foo.benalman.com/"): true
$.isUrlExternal("http://bar.benalman.com/"): true
$.isUrlExternal("https://benalman.com/"): false
$.isUrlExternal("https://www.benalman.com/"): false
$.isUrlExternal("https://google.com/"): true
$.isUrlExternal("https://google.com/foo/bar.html?baz=123&test="): true
$.isUrlExternal("https://google.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlExternal("#test-anchor"): undefined
$.isUrlExternal("mailto:spam@benalman.com"): undefined
$.isUrlExternal("javascript:alert('hello world')"): undefined
$.isUrlExternal("ftp://ftp.example.com/foo/bar"): undefined
$.isUrlExternal("irc://irc.example.com/foo/bar"): undefined
$.isUrlExternal("arbitrary://irc.example.com/foo/bar"): undefined
$.isUrlExternal("#"): undefined
$.isUrlExternal("#foo"): undefined
$.isUrlExternal("#test=&a=1&a=2&b=boo"): undefined
$.isUrlExternal("#baz=123"): undefined
$.urlInternalHost('foo');
urlInternalRegExp: /^https:\/\/(?:foo\.)?benalman.com\//i
Internal?
$.isUrlInternal("./"): true
$.isUrlInternal("../"): true
$.isUrlInternal("?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("?test=&a=1&a=2&b=boo#test-anchor"): true
$.isUrlInternal("foo"): true
$.isUrlInternal("foo#test-anchor"): true
$.isUrlInternal("foo/"): true
$.isUrlInternal("foo/bar.html?baz=123"): true
$.isUrlInternal("bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("/foo"): true
$.isUrlInternal("/foo/"): true
$.isUrlInternal("/foo/bar.html?baz=123"): true
$.isUrlInternal("/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("https://benalman.com/"): true
$.isUrlInternal("http://www.benalman.com/"): false
$.isUrlInternal("http://www.benalman.com/foo#test-anchor"): false
$.isUrlInternal("http://www.benalman.com/foo/#test-anchor"): false
$.isUrlInternal("https://benalman.com/foo/bar.html"): true
$.isUrlInternal("https://benalman.com/foo/bar.html?baz=123"): true
$.isUrlInternal("https://benalman.com/foo/bar.html?baz=123&test="): true
$.isUrlInternal("https://benalman.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("https://benalman.com:81/"): false
$.isUrlInternal("http://foo.benalman.com/"): false
$.isUrlInternal("http://foo.benalman.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlInternal("https://foo.benalman.com/"): true
$.isUrlInternal("http://bar.benalman.com/"): false
$.isUrlInternal("https://benalman.com/"): true
$.isUrlInternal("https://www.benalman.com/"): false
$.isUrlInternal("https://google.com/"): false
$.isUrlInternal("https://google.com/foo/bar.html?baz=123&test="): false
$.isUrlInternal("https://google.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlInternal("#test-anchor"): undefined
$.isUrlInternal("mailto:spam@benalman.com"): undefined
$.isUrlInternal("javascript:alert('hello world')"): undefined
$.isUrlInternal("ftp://ftp.example.com/foo/bar"): undefined
$.isUrlInternal("irc://irc.example.com/foo/bar"): undefined
$.isUrlInternal("arbitrary://irc.example.com/foo/bar"): undefined
$.isUrlInternal("#"): undefined
$.isUrlInternal("#foo"): undefined
$.isUrlInternal("#test=&a=1&a=2&b=boo"): undefined
$.isUrlInternal("#baz=123"): undefined
External?
$.isUrlExternal("./"): false
$.isUrlExternal("../"): false
$.isUrlExternal("?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("?test=&a=1&a=2&b=boo#test-anchor"): false
$.isUrlExternal("foo"): false
$.isUrlExternal("foo#test-anchor"): false
$.isUrlExternal("foo/"): false
$.isUrlExternal("foo/bar.html?baz=123"): false
$.isUrlExternal("bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("/foo"): false
$.isUrlExternal("/foo/"): false
$.isUrlExternal("/foo/bar.html?baz=123"): false
$.isUrlExternal("/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("https://benalman.com/"): false
$.isUrlExternal("http://www.benalman.com/"): true
$.isUrlExternal("http://www.benalman.com/foo#test-anchor"): true
$.isUrlExternal("http://www.benalman.com/foo/#test-anchor"): true
$.isUrlExternal("https://benalman.com/foo/bar.html"): false
$.isUrlExternal("https://benalman.com/foo/bar.html?baz=123"): false
$.isUrlExternal("https://benalman.com/foo/bar.html?baz=123&test="): false
$.isUrlExternal("https://benalman.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("https://benalman.com:81/"): true
$.isUrlExternal("http://foo.benalman.com/"): true
$.isUrlExternal("http://foo.benalman.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlExternal("https://foo.benalman.com/"): false
$.isUrlExternal("http://bar.benalman.com/"): true
$.isUrlExternal("https://benalman.com/"): false
$.isUrlExternal("https://www.benalman.com/"): true
$.isUrlExternal("https://google.com/"): true
$.isUrlExternal("https://google.com/foo/bar.html?baz=123&test="): true
$.isUrlExternal("https://google.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlExternal("#test-anchor"): undefined
$.isUrlExternal("mailto:spam@benalman.com"): undefined
$.isUrlExternal("javascript:alert('hello world')"): undefined
$.isUrlExternal("ftp://ftp.example.com/foo/bar"): undefined
$.isUrlExternal("irc://irc.example.com/foo/bar"): undefined
$.isUrlExternal("arbitrary://irc.example.com/foo/bar"): undefined
$.isUrlExternal("#"): undefined
$.isUrlExternal("#foo"): undefined
$.isUrlExternal("#test=&a=1&a=2&b=boo"): undefined
$.isUrlExternal("#baz=123"): undefined
$.urlInternalRegExp('^https?://(?:(?:www|foo)[.])?benalman.com/');
urlInternalRegExp: /^https?:\/\/(?:(?:www|foo)[.])?benalman.com\//i
Internal?
$.isUrlInternal("./"): true
$.isUrlInternal("../"): true
$.isUrlInternal("?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("?test=&a=1&a=2&b=boo#test-anchor"): true
$.isUrlInternal("foo"): true
$.isUrlInternal("foo#test-anchor"): true
$.isUrlInternal("foo/"): true
$.isUrlInternal("foo/bar.html?baz=123"): true
$.isUrlInternal("bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("/foo"): true
$.isUrlInternal("/foo/"): true
$.isUrlInternal("/foo/bar.html?baz=123"): true
$.isUrlInternal("/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("https://benalman.com/"): true
$.isUrlInternal("http://www.benalman.com/"): true
$.isUrlInternal("http://www.benalman.com/foo#test-anchor"): true
$.isUrlInternal("http://www.benalman.com/foo/#test-anchor"): true
$.isUrlInternal("https://benalman.com/foo/bar.html"): true
$.isUrlInternal("https://benalman.com/foo/bar.html?baz=123"): true
$.isUrlInternal("https://benalman.com/foo/bar.html?baz=123&test="): true
$.isUrlInternal("https://benalman.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("https://benalman.com:81/"): false
$.isUrlInternal("http://foo.benalman.com/"): true
$.isUrlInternal("http://foo.benalman.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlInternal("https://foo.benalman.com/"): true
$.isUrlInternal("http://bar.benalman.com/"): false
$.isUrlInternal("https://benalman.com/"): true
$.isUrlInternal("https://www.benalman.com/"): true
$.isUrlInternal("https://google.com/"): false
$.isUrlInternal("https://google.com/foo/bar.html?baz=123&test="): false
$.isUrlInternal("https://google.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlInternal("#test-anchor"): undefined
$.isUrlInternal("mailto:spam@benalman.com"): undefined
$.isUrlInternal("javascript:alert('hello world')"): undefined
$.isUrlInternal("ftp://ftp.example.com/foo/bar"): undefined
$.isUrlInternal("irc://irc.example.com/foo/bar"): undefined
$.isUrlInternal("arbitrary://irc.example.com/foo/bar"): undefined
$.isUrlInternal("#"): undefined
$.isUrlInternal("#foo"): undefined
$.isUrlInternal("#test=&a=1&a=2&b=boo"): undefined
$.isUrlInternal("#baz=123"): undefined
External?
$.isUrlExternal("./"): false
$.isUrlExternal("../"): false
$.isUrlExternal("?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("?test=&a=1&a=2&b=boo#test-anchor"): false
$.isUrlExternal("foo"): false
$.isUrlExternal("foo#test-anchor"): false
$.isUrlExternal("foo/"): false
$.isUrlExternal("foo/bar.html?baz=123"): false
$.isUrlExternal("bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("/foo"): false
$.isUrlExternal("/foo/"): false
$.isUrlExternal("/foo/bar.html?baz=123"): false
$.isUrlExternal("/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("https://benalman.com/"): false
$.isUrlExternal("http://www.benalman.com/"): false
$.isUrlExternal("http://www.benalman.com/foo#test-anchor"): false
$.isUrlExternal("http://www.benalman.com/foo/#test-anchor"): false
$.isUrlExternal("https://benalman.com/foo/bar.html"): false
$.isUrlExternal("https://benalman.com/foo/bar.html?baz=123"): false
$.isUrlExternal("https://benalman.com/foo/bar.html?baz=123&test="): false
$.isUrlExternal("https://benalman.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("https://benalman.com:81/"): true
$.isUrlExternal("http://foo.benalman.com/"): false
$.isUrlExternal("http://foo.benalman.com/bar.html?test=&a=1&a=2&b=boo"): false
$.isUrlExternal("https://foo.benalman.com/"): false
$.isUrlExternal("http://bar.benalman.com/"): true
$.isUrlExternal("https://benalman.com/"): false
$.isUrlExternal("https://www.benalman.com/"): false
$.isUrlExternal("https://google.com/"): true
$.isUrlExternal("https://google.com/foo/bar.html?baz=123&test="): true
$.isUrlExternal("https://google.com/bar.html?test=&a=1&a=2&b=boo"): true
$.isUrlExternal("#test-anchor"): undefined
$.isUrlExternal("mailto:spam@benalman.com"): undefined
$.isUrlExternal("javascript:alert('hello world')"): undefined
$.isUrlExternal("ftp://ftp.example.com/foo/bar"): undefined
$.isUrlExternal("irc://irc.example.com/foo/bar"): undefined
$.isUrlExternal("arbitrary://irc.example.com/foo/bar"): undefined
$.isUrlExternal("#"): undefined
$.isUrlExternal("#foo"): undefined
$.isUrlExternal("#test=&a=1&a=2&b=boo"): undefined
$.isUrlExternal("#baz=123"): undefined