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

Function getProtocol

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

Source from the content-addressed store, hash-verified

40158 tl = Ja(2, 'replaceAll')
40159 const sl = Mc(String.prototype.replaceAll) ? tl : Qc,
40160 isWindows = () => Qo(va(/^win/), ['platform'], Yo),
40161 getProtocol = (s) => {
40162 try {
40163 const o = new URL(s)
40164 return oc(':', o.protocol)
40165 } catch {
40166 return
40167 }
40168 },
40169 ul =
40170 (pipe(getProtocol, _c),

Callers 2

isHttpUrlFunction · 0.85

Calls 1

ocFunction · 0.50

Tested by

no test coverage detected