Skip to content

Commit e7fde5d

Browse files
fix regex to support py3.5
1 parent 62275f7 commit e7fde5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lingua_franca/parse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def normalize_decimals(text):
8686
"""
8787
sanitize_decimals = re.compile(r"\b\d+,{1}\d+\b")
8888
for _, match in enumerate(re.finditer(sanitize_decimals, text)):
89-
text = text.replace(match[0], match[0].replace(',', '.'))
89+
text = text.replace(match.group(0), match.group(0).replace(',', '.'))
9090
return text
9191

9292

0 commit comments

Comments
 (0)