summaryrefslogtreecommitdiff
path: root/lib/sbin/parameter_parser.pl
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-09-05 08:06:59 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-09-05 08:06:59 +0000
commit32fd49d0522e10765ba8349de7bdd019a7e70a59 (patch)
tree19fd018e33ff85b6d9c3e0213e74f5347e1bb3c2 /lib/sbin/parameter_parser.pl
parent3ffcf43599d077d25c35f48af87c0b4cbfde1224 (diff)
Also allow a single '*' as range specification for integer and real parameters.
This closes PR CactusEinstein/1962: "IDAxiBrillBH: CST errors (Invalid range)". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4120 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/parameter_parser.pl')
-rw-r--r--lib/sbin/parameter_parser.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sbin/parameter_parser.pl b/lib/sbin/parameter_parser.pl
index c9960640..ed50d278 100644
--- a/lib/sbin/parameter_parser.pl
+++ b/lib/sbin/parameter_parser.pl
@@ -384,6 +384,7 @@ sub parse_param_ccl
# check integer parameter ranges
if ($type eq 'INT' && ! (
+ $new_ranges eq '*' ||
$new_ranges =~ /^[+-]?\d+$/ ||
$new_ranges =~ /^(\*|[(]?[+-]?\d+)?:(\*|[(]?[+-]?\d+)?(:\d+)?$/)) {
&CST_error(0, "Invalid range '$new_ranges' for integer " .