Skip to content

Commit

Permalink
fixed REs to address #51
Browse files Browse the repository at this point in the history
  • Loading branch information
samhunter committed Mar 29, 2016
1 parent c8bb020 commit 7967c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ARC/config.py
Expand Up @@ -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
Expand Down

0 comments on commit 7967c68

Please sign in to comment.