JuliaComputing / JuliaHub-Feedback

Public repo for filing JuliaHub issues
6 stars 1 forks source link

Whole Word search matches parts of words #75

Closed diamond-lizard closed 3 years ago

diamond-lizard commented 3 years ago

I tried searching for "midi" with "Whole Word" checked:

https://juliahub.com/ui/RepoSearch?q=midi&w=true

I expected to see only results where "midi" matched entire words, not parts of words, but got results such as "humidity" and "dehumidifier".

pfitzseb commented 3 years ago

That's a bit subtle: The whole word setting only has an effect if you're using regex search, which is why the checkbox is disabled in your case. https://juliahub.com/ui/RepoSearch?q=midi&w=true&r=true gives the expected answer.

StefanKarpinski commented 3 years ago

Can we support whole word search in non-regex mode? It could be emulated by Regex escaping the search term and then putting \b before and after the escaped search term.

pfitzseb commented 3 years ago

Fix is in and should be deployed soon(ish).