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

Don't trim quoted strings #254

Merged
merged 1 commit into from
Jun 20, 2017
Merged

Don't trim quoted strings #254

merged 1 commit into from
Jun 20, 2017

Conversation

mstemm
Copy link
Contributor

@mstemm mstemm commented Jun 20, 2017

When parsing condition expressions, if the type of an ast node is
String (aka quoted string), don't trim whitespace from the value. This
ensures that conditions that want to match exact strings e.g. command
lines with leading/trailing spaces will work properly.

This fixes #253.

When parsing condition expressions, if the type of an ast node is
String (aka quoted string), don't trim whitespace from the value. This
ensures that conditions that want to match exact strings e.g. command
lines with leading/trailing spaces will work properly.

This fixes #253.
@mstemm mstemm merged commit 2991ea4 into dev Jun 20, 2017
@mstemm mstemm deleted the dont-trim-strings branch June 20, 2017 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rules parser drops trailing whitespace from strings
1 participant