diff filter_kw_val.py @ 6:c6ba1e6f6869 draft

planemo upload commit 74b6a02a2e64d02551c05b52d571b888ac73cac9
author proteore
date Fri, 20 Apr 2018 09:07:23 -0400
parents 1e9911190142
children 6f32c1e12572
line wrap: on
line diff
--- a/filter_kw_val.py	Wed Mar 14 10:24:54 2018 -0400
+++ b/filter_kw_val.py	Fri Apr 20 09:07:23 2018 -0400
@@ -33,8 +33,8 @@
     """
     Check if a variable is a float or an integer
     """
-    float_format = re.compile(r"^[-]?[1-9][0-9]*.?[0-9]+$")
-    int_format = re.compile(r"^[-]?[1-9][0-9]*$")
+    float_format = re.compile(r"^[-]?[0-9][0-9]*.?[0-9]+$")
+    int_format = re.compile(r"^[-]?[0-9][0-9]*$")
     test = ""
     if number_format == "int":
         test = re.match(int_format, n)