MCPcopy Index your code
hub / github.com/anomalyco/opencode / isInvalidPattern

Function isInvalidPattern

packages/core/src/ripgrep.ts:89–90  ·  view source on GitHub ↗
(stderr: string)

Source from the content-addressed store, hash-verified

87const failure = (message: string, cause?: unknown) => new Error({ message, cause })
88
89const isInvalidPattern = (stderr: string) =>
90 stderr.includes("regex parse error") || stderr.includes("error parsing regex")
91
92const layer = Layer.effect(
93 Service,

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected