MCPcopy Index your code
hub / github.com/dataease/SQLBot / lolcation

Function lolcation

frontend/public/swagger-ui-bundle.js:23810–23830  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

23808 ],
23809 $ = { hash: 1, query: 1 }
23810 function lolcation(s) {
23811 var o,
23812 a =
23813 ('undefined' != typeof window
23814 ? window
23815 : void 0 !== i.g
23816 ? i.g
23817 : 'undefined' != typeof self
23818 ? self
23819 : {}
23820 ).location || {},
23821 u = {},
23822 _ = typeof (s = s || a)
23823 if ('blob:' === s.protocol) u = new Url(unescape(s.pathname), {})
23824 else if ('string' === _) for (o in ((u = new Url(s, {})), $)) delete u[o]
23825 else if ('object' === _) {
23826 for (o in s) o in $ || (u[o] = s[o])
23827 void 0 === u.slashes && (u.slashes = x.test(s.href))
23828 }
23829 return u
23830 }
23831 function isSpecial(s) {
23832 return (
23833 'file:' === s ||

Callers 1

UrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected