Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
vieenrose committed Apr 18, 2019
1 parent d304ab3 commit f172827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def edit_distance(s1, s2):
def distance(s1, s2) :

# retirer des signes de marcro qui ne sont pas présentes dans le tier de ref.
macrosyntax_signs = re.compile(r"[\&\(\)\[\]\/\|\+\s\<\>]")
macrosyntax_signs = re.compile(r"[\#\&\(\)\[\]\/\|\+\s\<\>]")
s1 = re.sub(macrosyntax_signs, "", s1.lower())
s2 = re.sub(macrosyntax_signs, "", s2.lower())
dist = edit_distance(s1, s2[:len(s1)])
Expand Down

0 comments on commit f172827

Please sign in to comment.