mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-12 00:00:12 +00:00
-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:
@ -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})
|
||||
|
Reference in New Issue
Block a user