Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow search queries containing special characters (fix for #2427) #2435

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

EmilePerron
Copy link
Contributor

Hey folks!

This is a fix for the issue I described in #2427.
I added search term encoding & escaping to match the format of the content in bolt_field_translation.

There doesn't seem to be any tests for this repository/method, but I tested the change on a Bolt project with:

  • the examples mentioned in the issue
  • other strings with accented/special characters
  • regular strings without special characters
  • email adresses
  • numbers

... and they all worked fine.

If there are tests set up for this and I just missed them somehow, just let me know and I'll take the appropriate steps.

Cheers!

… format of the content in `bolt_field_translation`.
Copy link
Member

@bobdenotter bobdenotter left a comment

Choose a reason for hiding this comment

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

Hi @EmilePerron !

Maybe someday we'll have a full-fledged search, that works across different databases. For now, your fix seems fine. Thanks! 👍

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.

2 participants