From 010436cd681e704b104089e961276fe34d716dae Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 7 Sep 2008 16:33:47 +0000 Subject: [PATCH] -Allow // around regexes in nodels criteria selection git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 4548f4f48..d3db222c8 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -827,6 +827,8 @@ sub nodels } elsif ($temp =~ /^[^=]*=~/) { ($temp,$value) = split /=~/,$temp,2; + $value =~ s/^\///; + $value =~ s/\/$//; $matchtype='regex'; } elsif ($temp =~ /[^=]*==/) { @@ -835,6 +837,8 @@ sub nodels } elsif ($temp =~ /[^=]*!~/) { ($temp,$value) = split /!~/,$temp,2; + $value =~ s/^\///; + $value =~ s/\/$//; $matchtype='negex'; } if ($shortnames{$temp})