From 4f96e3c5680adf14c5555d0d6c0d82ea0d044b22 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Wed, 9 Dec 2020 08:32:43 -0600 Subject: [PATCH] Add support for integer values. --- src/Mod/Draft/importAirfoilDAT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/importAirfoilDAT.py b/src/Mod/Draft/importAirfoilDAT.py index c49fa61efa..e496667a4c 100644 --- a/src/Mod/Draft/importAirfoilDAT.py +++ b/src/Mod/Draft/importAirfoilDAT.py @@ -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(\-|\d*)\.\d+([Ee]\-?\d+)?)' - yval = r'(?P\-?\s*\d*\.\d+([Ee]\-?\d+)?)' + xval = r'(?P(\-|\d*)\.*\d*([Ee]\-?\d+)?)' + yval = r'(?P\-?\s*\d*\.*\d*([Ee]\-?\d+)?)' _regex = r'^\s*' + xval + r'\,?\s*' + yval + r'\s*$' regex = re.compile(_regex)