Skip to content

Conversation

@JordanRushing
Copy link
Contributor

Cherry-picks 12221f4 onto release-2.9.x


This PR fixed an issue where regexes were being escaped multiple times and causing otherwise valid queries to fail our length check. It put the resulting regexes in double quotes which meant that any regexes that needed escaping were now invalid.

This PR make is so the unescaped regex is put in a raw string literal so any extra escaping in unnecessary.

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • 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

[This PR](grafana#10277) fixed an issue
where regexes were being escaped multiple times and causing otherwise
valid queries to fail our length check. It put the resulting regexes in
double quotes which meant that any regexes that _needed_ escaping were
now invalid.

This PR make is so the unescaped regex is put in a raw string literal so
any extra escaping in unnecessary.
@JordanRushing JordanRushing self-assigned this Aug 29, 2023
@JordanRushing JordanRushing requested a review from a team as a code owner August 29, 2023 17:24
@JordanRushing JordanRushing merged commit 3959cd2 into grafana:release-2.9.x Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants