Skip to content

Commit

Permalink
Add support for integer values.
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Dec 9, 2020
1 parent 5e692d1 commit 4f96e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Draft/importAirfoilDAT.py
Expand Up @@ -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)
Expand Down

0 comments on commit 4f96e3c

Please sign in to comment.