MCPcopy
hub / github.com/arktypeio/arktype / test

Method test

ark/regex/regex.ts:36–36  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

34 flags: ctx["flags"] extends Flags ? ctx["flags"] : ""
35
36 test(s: string): s is pattern
37
38 exec(s: string): this["inferExecArray"] | null
39 // allow extension of base RegExp with more accurate types

Callers 15

getCompletionsFunction · 0.80
assertions.tsFile · 0.80
benchTemplate.tsFile · 0.80
patchC8.cjsFile · 0.80
isBalancedFunction · 0.80
tryParseDatePatternFunction · 0.80
stringIsIntegerLikeFunction · 0.80
walkPathsFunction · 0.80
fs.tsFile · 0.80
getLocationWithOffsetFunction · 0.80
isDotAccessibleFunction · 0.80

Calls

no outgoing calls

Tested by 1

stringIsIntegerLikeFunction · 0.64