diff options
author | rideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-04-28 22:31:37 +0000 |
---|---|---|
committer | rideout <rideout@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-04-28 22:31:37 +0000 |
commit | 66195a1bf87cf8be125ddb4bc5c62e76e608b70b (patch) | |
tree | f91a227c918833fd3565c379c46a28a2945d0962 /lib/sbin/parameter_parser.pl | |
parent | 4bea3c8a103f783f6ab8c00960653941c95f3b4b (diff) |
Support for exponential notation in parameter ranges, e.g. 1.6e-82, by
Fokke Dijkstra.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3202 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/parameter_parser.pl')
-rw-r--r-- | lib/sbin/parameter_parser.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbin/parameter_parser.pl b/lib/sbin/parameter_parser.pl index 19b70460..80d2b316 100644 --- a/lib/sbin/parameter_parser.pl +++ b/lib/sbin/parameter_parser.pl @@ -672,7 +672,7 @@ sub CheckParameterDefault $range =~ s/^\s*//; $range =~ s/\s*$//; $range =~ s/^"(.*)"$/$1/; - $range =~ /^([\s\*0-9\.]*):([\s\*0-9\.]*)/; + $range =~ /^([\s\*0-9\.eE+-]*):([\s\*0-9\.eE+-]*)/; $min = $1; $max = $2; if ($min =~ /^\s*[\*\s]*\s*$/) |