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

Function isPlainSafe

frontend/public/swagger-ui-bundle.js:34072–34082  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

34070 function isNsCharOrWhitespace(s) {
34071 return isPrintable(s) && s !== Kr && 13 !== s && 10 !== s
34072 }
34073 function isPlainSafe(s, o, i) {
34074 var a = isNsCharOrWhitespace(s),
34075 u = a && !isWhitespace(s)
34076 return (
34077 ((i ? a : a && 44 !== s && 91 !== s && 93 !== s && 123 !== s && 125 !== s) &&
34078 35 !== s &&
34079 !(58 === o && !u)) ||
34080 (isNsCharOrWhitespace(o) && !isWhitespace(o) && 35 === s) ||
34081 (58 === o && u)
34082 )
34083 }
34084 function codePointAt(s, o) {
34085 var i,

Callers 1

chooseScalarStyleFunction · 0.85

Calls 2

isNsCharOrWhitespaceFunction · 0.85
isWhitespaceFunction · 0.85

Tested by

no test coverage detected