Make workshop text field searches ignore hyphens #737
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the goal of this PR and why is this important?
This PR makes workshop searches ignore hyphens in both user input and workshop data, improving search usability. Users can now find workshops regardless of hyphen variations in titles or text content (e.g., "self-care" vs "selfcare", "hello - goodbye" vs "hello goodbye").
How did you approach the change?
titlescope to use SQLREPLACEfunction to strip hyphens from both search input and database fields, with proper SQL injection protection viasanitize_sql_likefilter_by_querymethod to use custom SQL that strips hyphens from search queries and appliesREPLACEto all searchable workshop fields (title, full_name, objective, materials, setup, introduction, demonstration, etc., including Spanish variants)Anything else to add?
The implementation ensures bidirectional matching:
All security checks passed with no vulnerabilities introduced. The changes are minimal and focused, affecting only the search behavior without impacting other functionality.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.