MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / regexpWithFlags

Function regexpWithFlags

shared-dom/src/language/query2sql.ts:535–543  ·  view source on GitHub ↗
(
	node: QueryRegex,
	column: string,
	forcePositive?: true,
)

Source from the content-addressed store, hash-verified

533}
534
535function regexpWithFlags(
536 node: QueryRegex,
537 column: string,
538 forcePositive?: true,
539) {
540 const col = sql.raw(column)
541 const not = getNot(node.negate, forcePositive)
542 return sql<SqlBool>`${not} regexp_with_flags(${node.pattern}, ${node.flags}, ${col})`
543}
544
545function handleField(
546 node: QueryString | QueryRegex,

Callers 4

regexpWithFlagsMethod · 0.85
handleFieldFunction · 0.85
serializeFunction · 0.85
buildTagSearchFunction · 0.85

Calls 1

getNotFunction · 0.85

Tested by

no test coverage detected