[Resmon-devel] [resmon commit] r167 - trunk/lib/Resmon
svn-commit at lists.omniti.com
svn-commit at lists.omniti.com
Tue Mar 24 13:16:25 EDT 2009
Author: mark
Date: 2009-03-24 13:16:25 -0400 (Tue, 24 Mar 2009)
New Revision: 167
Modified:
trunk/lib/Resmon/Config.pm
Log:
Fix for multiple colon symbols when parsing the config file
Modified: trunk/lib/Resmon/Config.pm
===================================================================
--- trunk/lib/Resmon/Config.pm 2009-03-24 17:05:05 UTC (rev 166)
+++ trunk/lib/Resmon/Config.pm 2009-03-24 17:16:25 UTC (rev 167)
@@ -20,7 +20,7 @@
next if /^\s*#/;
next if /^\s*$/;
if($current) {
- if(/^\s*(\S(?:.*\S)?)\s*:\s*(.+)\s*$/) {
+ if(/^\s*([^:\s](?:[^:]*[^:\s])?)\s*:\s*(.+)\s*$/) {
my %kvs;
$kvs{'type'} = $current;
$kvs{'object'} = $1;
More information about the Resmon-devel
mailing list