lib/phonetics/levenshtein.rb in phonetics-1.1.0 vs lib/phonetics/levenshtein.rb in phonetics-1.1.1

- old
+ new

@@ -20,9 +20,10 @@ prepare_matrix set_edit_distances(ipa_str1, ipa_str2) end def distance + return 0 if walk.empty? walk.last[:distance] end def self.distance(str1, str2) new(str1, str2).distance