diff options
Diffstat (limited to 'fuzzycat/matching.py')
-rw-r--r-- | fuzzycat/matching.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzzycat/matching.py b/fuzzycat/matching.py index 7fe2fd6..cbadbc2 100644 --- a/fuzzycat/matching.py +++ b/fuzzycat/matching.py @@ -140,7 +140,8 @@ def match_container_names(a: str, b: str) -> MatchStatus: return MatchStatus.WEAK # Address e.g. a char flip, but only, if we do not have diacritics. - if (not asa["is_short_string"] and not asa["is_single_token"] and not asa["has_diacritics"] and hamming_distance(a, b) < 2): + if (not asa["is_short_string"] and not asa["is_single_token"] and not asa["has_diacritics"] + and hamming_distance(a, b) < 2): return MatchStatus.STRONG return MatchStatus.AMBIGIOUS |