Skip to content

feat: escape literal LIKE patterns - #36

Merged
smiggleworth merged 1 commit into
mainfrom
feat/escape-like-patterns
Aug 24, 2026
Merged

feat: escape literal LIKE patterns#36
smiggleworth merged 1 commit into
mainfrom
feat/escape-like-patterns

Conversation

@smiggleworth

Copy link
Copy Markdown
Contributor

Closes #26.

Summary

  • export escapeLikePattern() for backslash, percent, and underscore escaping
  • make like() and ilike() emit the corresponding backslash ESCAPE clause
  • verify compiled SQL and literal wildcard matching against SQLite
  • document a safe contains-search example

Validation

  • npm run check

No package version or publishing changes.

@smiggleworth
smiggleworth marked this pull request as ready for review August 24, 2026 09:50
Copilot AI lite review requested due to automatic review settings August 24, 2026 09:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@smiggleworth
smiggleworth merged commit 37a6007 into main Aug 24, 2026
4 checks passed
@smiggleworth
smiggleworth deleted the feat/escape-like-patterns branch August 24, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No helper for escaping LIKE/ILIKE wildcard characters in user-supplied search input

2 participants