diff --git a/ARC/config.py b/ARC/config.py index f8f984c..13e320b 100644 --- a/ARC/config.py +++ b/ARC/config.py @@ -124,9 +124,9 @@ def read(self): # Go ahead and convert the things that should be ints to ints key = cfg[0].strip() value = cfg[1].strip() - if re.match(r"[0-9]*\.[0-9]+", value): + if re.match(r"^[0-9]*\.[0-9]+$", value): self.config[key] = float(value) - elif re.match(r"[0-9]+", value): + elif re.match(r"^[0-9]+$", value): self.config[key] = int(value) elif value in ('True', 'true'): self.config[key] = True