Changeset b603f6fffe936f58cee3b10e0bbdd96b443bcacf

Show
Ignore:
Timestamp:
03/24/09 17:16:25 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1237914985 +0000
git-parent:

[1a465c2f4e2ab399ae433a1c36424bf3852a07db]

git-author:
Mark Harrison <mark@omniti.com> 1237914985 +0000
Message:

Fix for multiple colon symbols when parsing the config file

git-svn-id: https://labs.omniti.com/resmon/trunk@167 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Config.pm

    r560fa16 rb603f6f  
    2121    next if /^\s*$/; 
    2222    if($current) { 
    23       if(/^\s*(\S(?:.*\S)?)\s*:\s*(.+)\s*$/) { 
     23      if(/^\s*([^:\s](?:[^:]*[^:\s])?)\s*:\s*(.+)\s*$/) { 
    2424        my %kvs; 
    2525        $kvs{'type'} = $current;