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

Function es_escape

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

Source from the content-addressed store, hash-verified

44185 return !1
44186 }
44187 },
44188 es_escape = (s) => {
44189 if ('string' != typeof s && 'number' != typeof s)
44190 throw new TypeError('Reference token must be a string or number')
44191 return String(s).replace(/~/g, '~0').replace(/\//g, '~1')
44192 }
44193 const Up = class JSONPointerCompileError extends Ip {},
44194 es_compile = (s) => {

Callers 1

es_compileFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected