MCPcopy
hub / github.com/infinitered/gluegun / isPatternIncluded

Function isPatternIncluded

src/toolbox/patching-tools.ts:158–161  ·  view source on GitHub ↗
(data: string, findPattern: string | RegExp)

Source from the content-addressed store, hash-verified

156}
157
158function isPatternIncluded(data: string, findPattern: string | RegExp): boolean {
159 if (!findPattern) return false
160 return typeof findPattern === 'string' ? data.includes(findPattern) : findPattern.test(data)
161}
162
163const patching: GluegunPatching = { update, append, prepend, replace, patch, exists }
164

Callers 3

existsFunction · 0.85
patchStringFunction · 0.85
insertNextToPatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…