MCPcopy Create free account
hub / github.com/ajv-validator/ajv / regexpCode

Function regexpCode

lib/compile/codegen/code.ts:167–169  ·  view source on GitHub ↗
(rx: RegExp)

Source from the content-addressed store, hash-verified

165}
166
167export function regexpCode(rx: RegExp): Code {
168 return new _Code(rx.toString())
169}

Callers 1

getFormatFunction · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected