Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vercel/next.js
/ normalizeRegEx
Function
normalizeRegEx
test/lib/next-test-utils.ts:1276–1278 ·
view source on GitHub ↗
(src: string)
Source
from the content-addressed store, hash-verified
1274
}
1275
1276
export
function
normalizeRegEx(src: string) {
1277
return
new
RegExp(src).source.replace(/\^\
//g, '^\\/')
1278
}
1279
1280
function
readJson(path: string) {
1281
return
JSON.parse(readFileSync(path,
'utf-8'
))
Callers
8
runTests
Function · 0.90
runTests
Function · 0.90
runTests
Function · 0.90
runTests
Function · 0.90
index.test.ts
File · 0.90
app-static.test.ts
File · 0.90
expectedManifestRoutes
Function · 0.90
runTests
Function · 0.90
Calls
1
replace
Method · 0.65
Tested by
5
runTests
Function · 0.72
runTests
Function · 0.72
runTests
Function · 0.72
expectedManifestRoutes
Function · 0.72
runTests
Function · 0.72