mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 17:46:38 +00:00
Merge pull request #2587 from chenglch/regex
Fix regex issue that duplicate the node name
This commit is contained in:
commit
b60eaae0e6
@ -2358,6 +2358,10 @@ sub transRegexAttrs
|
||||
undef $@; #extract_bracketed would have set $@ if it didn't return, undef $@
|
||||
$retval = $node;
|
||||
$retval =~ s/$parts[0]/$parts[1]/;
|
||||
if ($retval =~ /^$/) {
|
||||
return undef;
|
||||
}
|
||||
return $retval;
|
||||
}
|
||||
while ($curr)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user