Skip to content

Commit

Permalink
Merge pull request #44 from bendudson/master-float-pattern
Browse files Browse the repository at this point in the history
Modify the float pattern matching in fileutils
  • Loading branch information
bendudson committed Jan 29, 2021
2 parents 0dc2705 + 15ac37d commit 6183174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freegs/_fileutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def next_value(fh):
the correct type depending on if '.' is in the string
"""
pattern = re.compile(r'[ +\-]?\d+(?:\.\d+[Ee][\+\-]\d\d)?')
pattern = re.compile(r"[ +\-]?\d+(?:\.\d+(?:[Ee][\+\-]\d\d)?)?")

# Go through each line, extract values, then yield them one by one
for line in fh:
Expand Down

0 comments on commit 6183174

Please sign in to comment.