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-1908) Munge the setting to ensure we always strip the whitespace #183

Merged
merged 1 commit into from Aug 3, 2015

Conversation

cyberious
Copy link
Contributor

No description provided.

@@ -17,6 +17,12 @@

newparam(:setting) do
desc 'The name of the setting to be defined.'
munge do |value|
if value =~ /^\s/ || value =~ /\s$/
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be simplified with... if value =~ /^\s|\s$/

bmjen added a commit that referenced this pull request Aug 3, 2015
(MODULES-1908) Munge the setting to ensure we always strip the whitespace
@bmjen bmjen merged commit f1e4313 into puppetlabs:master Aug 3, 2015
@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.

None yet

3 participants