Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify regex escaping rules #1601

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Jan 28, 2020

YAML treats backslashes in double-quoted strings differently than backslashes in non-double-quoted strings. This PR clarifies the behavior for the regex stage.

I've tested all the various cases and verified that escaping backslashes are only required when using double quotes.

Closes #1597.

YAML treats backslashes in double-quoted strings differently than
backslashes in non-double-quoted strings. This commit clarifies the
behavior for the regex stage.

Closes grafana#1597
@rfratto rfratto force-pushed the fix-regex-pipeline-examples branch from 7273d6e to 88b04cc Compare January 28, 2020 22:18
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@rfratto rfratto merged commit 576e479 into grafana:master Jan 29, 2020
@rfratto rfratto deleted the fix-regex-pipeline-examples branch January 29, 2020 13:12
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
In DynamoDB metrics autoscaling, ignore throttling below some level
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.

Promtail pipelines docs: regex requires double quotes
2 participants