summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/util/ini_file.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/ini_file.rb b/lib/puppet/util/ini_file.rb
index 0505462..b951b3f 100644
--- a/lib/puppet/util/ini_file.rb
+++ b/lib/puppet/util/ini_file.rb
@@ -5,8 +5,8 @@ module Puppet
module Util
class IniFile
- SECTION_REGEX = /^\s*\[([\S.]+)\]\s*$/
- SETTING_REGEX = /^\s*([\S]+)\s*=\s*([\S]+)\s*$/
+ SECTION_REGEX = /^\s*\[([\w\d\.\\\/\-]+)\]\s*$/
+ SETTING_REGEX = /^\s*([\w\d\.\\\/\-]+)\s*=\s*([\S]+)\s*$/
def initialize(path)
@path = path