Merge pull request #59 from antroy/master

Adding whitespace capability to section header regex
This commit is contained in:
Ashley Penney 2013-11-20 09:21:12 -08:00
commit 2b45293d6d

View file

@ -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*$/