MCPcopy Index your code
hub / github.com/simstudioai/sim / escapeLikePattern

Function escapeLikePattern

apps/sim/lib/table/sql.ts:494–496  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

492
493/** Escapes LIKE/ILIKE wildcard characters so they match literally */
494export function escapeLikePattern(value: string): string {
495 return value.replace(/[\\%_]/g, '\\$&')
496}
497
498/**
499 * Builds a case-insensitive pattern match against a JSONB cell using ILIKE.

Callers 2

findRowMatchesFunction · 0.90
buildLikeClauseFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected