mirror of https://github.com/grafana/loki
Stopped String() from doubly escaping regex characters (#10277)
**What this PR does / why we need it**:
When queries have regex, characters that needed escaping were escaped
twice. Now they're only singly escaped. This is good because it reduces
the character count so users can submit queries closer to the 5120 byte
limit.
**Which issue(s) this PR fixes**:
Sort of addresses #10153
**Special notes for your reviewer**:
**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [x] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/setup/upgrade/_index.md`
- [ ] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e3ec)
Co-authored-by: Akhila Narayanan <akhilanarayanan@Akhilas-MacBook-Air.local>
pull/10240/head^2
parent
7f48efb60a
commit
4013c1f8b5
Loading…
Reference in new issue