Skip to content

Unable to perform a literal search with a query that contains a :

Created by: nicksnyder

Performing this query: https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+https://codecov.io/bash&patternType=literal

Results in this: Screen Shot 2020-04-24 at 9 48 21 AM

I try to add quotes: https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+%22https://codecov.io/bash%22&patternType=literal

And then I get this: Screen Shot 2020-04-24 at 9 49 11 AM

To get what I want, I have to enabled regex: https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+%22https://codecov.io/bash%22&patternType=regexp

Screen Shot 2020-04-24 at 9 49 38 AM

My feedback as a user (not as VPE) is that we should allow my original query to work and not treat it like an error. We should silently ignore things that look like fields, but aren't in our small list of known fields.

@tsenart This might be a good issue for @asdine. cc @rvantonder