2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-25 05:41:09 +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

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