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

Function _quote

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

Source from the content-addressed store, hash-verified

39540 for (var i = 0, a = o.length, u = Array(a); i < a; ) ((u[i] = s(o[i])), (i += 1))
39541 return u
39542 }
39543 function _quote(s) {
39544 return (
39545 '"' +
39546 s
39547 .replace(/\\/g, '\\\\')
39548 .replace(/[\b]/g, '\\b')
39549 .replace(/\f/g, '\\f')
39550 .replace(/\n/g, '\\n')
39551 .replace(/\r/g, '\\r')
39552 .replace(/\t/g, '\\t')
39553 .replace(/\v/g, '\\v')
39554 .replace(/\0/g, '\\0')
39555 .replace(/"/g, '\\"') +
39556 '"'
39557 )
39558 }
39559 var ia = function pad(s) {
39560 return (s < 10 ? '0' : '') + s

Callers 2

mapPairsFunction · 0.85
_toString_toStringFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected