MCPcopy Create free account
hub / github.com/Effect-TS/effect / toRegExpArray

Function toRegExpArray

packages/effect/src/String.ts:1246–1247  ·  view source on GitHub ↗
(regexp: RegExp | ReadonlyArray<RegExp>)

Source from the content-addressed store, hash-verified

1244})
1245
1246const toRegExpArray = (regexp: RegExp | ReadonlyArray<RegExp>): ReadonlyArray<RegExp> =>
1247 predicate.isRegExp(regexp) ? [regexp] : regexp
1248
1249const normalizeCase = (
1250 input: string,

Callers 1

String.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected