From 8d2a8c859d928700350d48965dcf01d279289393 Mon Sep 17 00:00:00 2001 From: Stephen Date: Tue, 14 Aug 2012 19:30:14 +0100 Subject: make the regex less matchy --- lib/puppet/util/ini_file.rb | 4 ++-- 1 file 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 -- cgit v1.2.3