better variable name in macro parser
This commit is contained in:
parent
6db4232b4a
commit
08e080bfc3
1 changed files with 3 additions and 2 deletions
|
|
@ -123,9 +123,10 @@ sub process {
|
|||
"Too many levels of macro recursion. Stopping.";
|
||||
}
|
||||
else {
|
||||
my $d = $1;
|
||||
my $initialText = $1;
|
||||
my $replaceText = _processMacro($session, $2, $3);
|
||||
defined $replaceText ? $replaceText : $d; # processMacro returns undef on failure, use original text
|
||||
# _processMacro returns undef on failure, use original text
|
||||
defined $replaceText ? $replaceText : $initialText;
|
||||
}
|
||||
}ge;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue