MCPcopy Create free account
hub / github.com/apache/camel-website / splitOnce

Function splitOnce

util/jsonpath-util.js:160–165  ·  view source on GitHub ↗
(querySpec, token = '=')

Source from the content-addressed store, hash-verified

158}
159
160function splitOnce (querySpec, token = '=') {
161 const index = querySpec.indexOf(token)
162 const pattern = querySpec.substring(0, index).trim()
163 const alias = querySpec.substring(index + 1).trim()
164 return { pattern, alias }
165}

Callers 1

jsonpath-util.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected