From 3370363c8d9f014acf8c8e9196229a52d7768dee Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 15 Mar 2003 03:20:47 +0000 Subject: [PATCH] strip parenthesis on one line --- lib/WebGUI/Macro.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/WebGUI/Macro.pm b/lib/WebGUI/Macro.pm index 41c9aed8c..f55ff8f48 100644 --- a/lib/WebGUI/Macro.pm +++ b/lib/WebGUI/Macro.pm @@ -147,8 +147,7 @@ sub process { next if ($searchString =~ /^\d+$/); # don't process ^0; ^1; ^2; etc. next if ($searchString =~ /^\-$/); # don't process ^-; if ($params ne "") { - $params =~ s/^\(//; # remove opening parenthesis - $params =~ s/\)$//; # remove trailing parenthesis + $params =~ s/(^\(|\)$)//g; # remove parenthesis $params = &process($params); # recursive process params } if ($session{config}{macros}{$searchString} ne "") {