MCPcopy Index your code
hub / github.com/github/docs / regexIndexOf

Function regexIndexOf

script/check-github-github-links.js:222–226  ·  view source on GitHub ↗
(string, regex, startPos)

Source from the content-addressed store, hash-verified

220}
221
222function regexIndexOf(string, regex, startPos) {
223 const indexOf = string.substring(startPos || 0).search(regex)
224
225 return indexOf >= 0 ? indexOf + (startPos || 0) : indexOf
226}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected