Skip to content

Commit

Permalink
stricter ilike
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Aug 9, 2024
1 parent 8de2b5f commit d4028bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ REGEXP_LIKE({{ field }}, '^{{ wildcard_to_regex(match_string) }}$')
{%- endmacro -%}

{%- macro ilike(field, match_string) -%}
REGEXP_LIKE({{ field }}, '.*(?i:{{ wildcard_to_regex(match_string) }}).*$')
REGEXP_LIKE({{ field }}, '^(?i:{{ wildcard_to_regex(match_string) }})$')
{%- endmacro -%}

{#- Checks for NULL, empty, whitespace-only, and '\u0000' strings
Expand Down

0 comments on commit d4028bc

Please sign in to comment.