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

Function stripHash

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

Source from the content-addressed store, hash-verified

40200 const o = s.indexOf('#')
40201 return -1 !== o ? s.substring(o) : '#'
40202 },
40203 stripHash = (s) => {
40204 const o = s.indexOf('#')
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)

Callers 13

url_cwdFunction · 0.85
resolveSchema$refFieldFunction · 0.85
uri_evaluateFunction · 0.85
toBaseURIMethod · 0.85
ReferenceElementMethod · 0.85
PathItemElementMethod · 0.85
LinkElementMethod · 0.85
ExampleElementMethod · 0.85
SchemaElementMethod · 0.85
ReferenceElementMethod · 0.85
PathItemElementMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected