MCPcopy Create free account
hub / github.com/dataease/SQLBot / url_cwd

Function url_cwd

frontend/public/swagger-ui-bundle.js:40207–40212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40205 let i = s
40206 return (o >= 0 && (i = s.substring(0, o)), i)
40207 },
40208 url_cwd = () => {
40209 if (Yo.browser) return stripHash(globalThis.location.href)
40210 const s = Yo.cwd(),
40211 o = Ba(s)
40212 return ['/', '\\'].includes(o) ? s : s + (isWindows() ? '\\' : '/')
40213 },
40214 resolve = (s, o) => {
40215 const i = new URL(o, new URL(s, 'resolve://'))

Callers 2

baseURIDefaultFunction · 0.85
resolveOpenAPI31StrategyFunction · 0.85

Calls 4

stripHashFunction · 0.85
BaFunction · 0.85
isWindowsFunction · 0.85
includesMethod · 0.45

Tested by

no test coverage detected