insights: respect the escape sequences provided in the explicit `content` argument of a query
View options
- Truncate descriptions
Created by: northyg
- Sourcegraph version: 3.38
- Platform information: docker-compose
Steps to reproduce:
- Create a new code insight
- Give it a query like
content: "Color\\(" patterntype:regexp)
- The preview displays correctly
repo:^(github\.com/sourcegraph/sourcegraph)$ content: "Color\\(")
- But on save the Code Insight query becomes
content: "Color\(" patterntype:regexp)
Expected behavior:
- Code Insight query should not remove the extra regex
\
upon saving.
Actual behavior:
- The extra
\
is removed. - Code Insight doesn't work properly
- Work around is to add extra
\
s to the query.
If would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are not SLAs on issues like there are for support requests).

