2
0
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:
zet809 2017-03-09 14:55:51 +08:00 committed by GitHub
commit b60eaae0e6

View File

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