Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
222
function
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
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected