]> gitweb.fluxo.info Git - puppet-inifile.git/commitdiff
Added support for colons in section names
authorJoe Topjian <joe@topjian.net>
Fri, 24 Aug 2012 08:37:08 +0000 (08:37 +0000)
committerJoe Topjian <joe@topjian.net>
Fri, 24 Aug 2012 08:37:08 +0000 (08:37 +0000)
lib/puppet/util/ini_file.rb

index 8629db0e5c63eef4cc29f8ba19b30a153464a33d..4fe41691dc94e746afb270c236a4b7ba49335247 100644 (file)
@@ -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