Skip to content

Commit

Permalink
fix regex to support py3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceNCounter committed Jan 11, 2020
1 parent 62275f7 commit e7fde5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lingua_franca/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def normalize_decimals(text):
"""
sanitize_decimals = re.compile(r"\b\d+,{1}\d+\b")
for _, match in enumerate(re.finditer(sanitize_decimals, text)):
text = text.replace(match[0], match[0].replace(',', '.'))
text = text.replace(match.group(0), match.group(0).replace(',', '.'))
return text


Expand Down

0 comments on commit e7fde5d

Please sign in to comment.