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

Function parseURIReference

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

Source from the content-addressed store, hash-verified

56172 }
56173 return s
56174 },
56175 parseURIReference = (s) => {
56176 try {
56177 return new URL(s)
56178 } catch {
56179 const o = new URL(s, Ll),
56180 i = String(s).startsWith('/') ? o.pathname : o.pathname.substring(1)
56181 return {
56182 hash: o.hash,
56183 host: '',
56184 hostname: '',
56185 href: '',
56186 origin: '',
56187 password: '',
56188 pathname: i,
56189 port: '',
56190 protocol: '',
56191 search: o.search,
56192 searchParams: o.searchParams,
56193 }
56194 }
56195 }
56196 class OperationNotFoundError extends Go {}
56197 const Xx = { buildRequest: execute_buildRequest }

Callers 1

execute_buildRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected