-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
This commit is contained in:
jbjohnso 2008-09-07 16:33:47 +00:00
parent d0dc5dd96a
commit 010436cd68

View File

@ -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})