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

MODULES-1599 Match only on space and tab whitespace after k/v separator #171

Merged
merged 1 commit into from
Jun 22, 2015
Merged

Conversation

misterdorm
Copy link

The previous match for \s would also match on newlines. This caused
existing settings with blank values to have the newline considered part
of the whitespace surrounding the separator. When such settings are
set with a value, the value ends up on the next line.

Note that this update to @@SETTING_REGEX for matching only space
and tab, makes it consistent with @@COMMENTED_SETTING_REGEX
which already matches only on those two.

Also adding acceptance test for this particular situation.

The previous match for \s would also match on newlines.  This caused
existing settings with blank values to have the newline considered part
of the whitespace surrounding the separator.  When such settings are
set with a value, the value ends up on the next line.

Also adding acceptance test for this particular situation.
underscorgan pushed a commit that referenced this pull request Jun 22, 2015
MODULES-1599 Match only on space and tab whitespace after k/v separator
@underscorgan underscorgan merged commit a09bfef into puppetlabs:master Jun 22, 2015
@underscorgan
Copy link
Contributor

Great, thank you @misterdorm !

👍

@smortex smortex added the bugfix label Jun 16, 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.

3 participants