Add support for integer values.

This commit is contained in:
Chris Hennes
2020-12-09 08:32:43 -06:00
parent 63dd784e64
commit 8556885f14

View File

@@ -157,8 +157,8 @@ def process(doc, filename):
with the parsed information.
"""
# Regex to identify data rows and throw away unused metadata
xval = r'(?P<xval>(\-|\d*)\.\d+([Ee]\-?\d+)?)'
yval = r'(?P<yval>\-?\s*\d*\.\d+([Ee]\-?\d+)?)'
xval = r'(?P<xval>(\-|\d*)\.*\d*([Ee]\-?\d+)?)'
yval = r'(?P<yval>\-?\s*\d*\.*\d*([Ee]\-?\d+)?)'
_regex = r'^\s*' + xval + r'\,?\s*' + yval + r'\s*$'
regex = re.compile(_regex)