(value: string)
| 492 | |
| 493 | /** Escapes LIKE/ILIKE wildcard characters so they match literally */ |
| 494 | export 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. |
no test coverage detected