diff options
author | Joe Topjian <joe@topjian.net> | 2012-08-24 08:37:08 +0000 |
---|---|---|
committer | Joe Topjian <joe@topjian.net> | 2012-08-24 08:37:08 +0000 |
commit | 63ddc0c926ed6b1f2cc2520dedd10e3bc3ab3cc1 (patch) | |
tree | bdc0511bc0a6d219f8392121b73e8e6ff57e1ae0 /lib | |
parent | 04e2c5ea3bb53af820d2ef24daac9ef1f1efd299 (diff) | |
download | puppet-inifile-63ddc0c926ed6b1f2cc2520dedd10e3bc3ab3cc1.tar.gz puppet-inifile-63ddc0c926ed6b1f2cc2520dedd10e3bc3ab3cc1.tar.bz2 |
Added support for colons in section names
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/util/ini_file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/ini_file.rb b/lib/puppet/util/ini_file.rb index 8629db0..4fe4169 100644 --- a/lib/puppet/util/ini_file.rb +++ b/lib/puppet/util/ini_file.rb @@ -5,7 +5,7 @@ module Puppet module Util class IniFile - SECTION_REGEX = /^\s*\[([\w\d\.\\\/\-]+)\]\s*$/ + SECTION_REGEX = /^\s*\[([\w\d\.\\\/\-\:]+)\]\s*$/ SETTING_REGEX = /^\s*([\w\d\.\\\/\-]+)\s*=\s*([\S]+)\s*$/ def initialize(path) @@ -133,4 +133,4 @@ module Util end end -end
\ No newline at end of file +end |