Skip to content

Commit

Permalink
Merge pull request puppetlabs#59 from antroy/master
Browse files Browse the repository at this point in the history
Adding whitespace capability to section header regex
  • Loading branch information
Ashley Penney committed Nov 20, 2013
2 parents 4d34cbf + 7fa3261 commit d4a349b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/util/ini_file.rb
Expand Up @@ -5,7 +5,7 @@ module Puppet
module Util
class IniFile

@@SECTION_REGEX = /^\s*\[([\w\d\.\\\/\-\:]+)\]\s*$/
@@SECTION_REGEX = /^\s*\[([\s\w\d\.\\\/\-\:]+)\]\s*$/
@@SETTING_REGEX = /^(\s*)([\w\d\.\\\/\-\s]*[\w\d\.\\\/\-])([ \t]*=[ \t]*)([\S\s]*?)\s*$/
@@COMMENTED_SETTING_REGEX = /^(\s*)[#;]+(\s*)([\w\d\.\\\/\-]+)([ \t]*=[ \t]*)([\S\s]*?)\s*$/

Expand Down

0 comments on commit d4a349b

Please sign in to comment.