sourcebot-dev / sourcebot

Blazingly fast code search 🏎️ Deployed as a single Docker image 📦 Search million+ lines of code in your GitHub, GitLab, and Gitea repositories 🪄 MIT licensed ✅
https://sourcebot.dev/
MIT License
1.15k stars 36 forks source link

Query execution bug with groups #79

Open KonradStanski opened 15 hours ago

KonradStanski commented 15 hours ago

When executing the query test lang:python on the demo, this produces 15 results: https://sourcebot.dev/search?query=test%20lang%3Apython When this is changed to test (lang:python) this drops to 0. https://sourcebot.dev/search?query=test%20(lang%3Apython)

this should be equivalent, so something is getting mangled.

KonradStanski commented 13 hours ago

May be because the () are not being escaped correctly in the URL? %28 could be used instead? I have not looked at how the querying is passed down yet, but this should be fixed too.