scoped_search icon indicating copy to clipboard operation
scoped_search copied to clipboard

Optional sanitizing of _ and % in search values

Open xmicha82 opened this issue 3 years ago • 0 comments

Hey everyone, we are trying to implement search on strings containing a lot of underscore characters and would like to have an optional sanitizing of the right side of search values. We could theoretically do that in our controllers, but that would require and additional run of your parser in order to only parse the value and not the whole search string. Would it be possible to implement this on your side in an opt-in manner? Thank you.

https://api.rubyonrails.org/classes/ActiveRecord/Sanitization/ClassMethods.html#method-i-sanitize_sql_like

xmicha82 avatar Oct 11 '21 12:10 xmicha82