Skip to content

Commit 2b45293

Browse files
author
Ashley Penney
committed
Merge pull request redhat-openstack#59 from antroy/master
Adding whitespace capability to section header regex
2 parents 10f270f + 86c57aa commit 2b45293

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/puppet/util/ini_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Puppet
55
module Util
66
class IniFile
77

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

0 commit comments

Comments
 (0)