Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/conwnet/github1s
/ buildRepoPattern
Function
buildRepoPattern
extensions/github1s/src/adapters/sourcegraph/common.ts:64–66 ·
view source on GitHub ↗
(repo: string)
Source
from the content-addressed store, hash-verified
62
export
const
escapeRegexp = (text: string): string => text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
'\\$&'
);
63
64
export
const
buildRepoPattern = (repo: string) => {
65
return
`^${escapeRegexp(repo)}$`;
66
};
Callers
2
getSymbolPositions
Function · 0.90
buildTextSearchQueryString
Function · 0.90
Calls
1
escapeRegexp
Function · 0.85
Tested by
no test coverage detected