lib/fuzzy_match/identity.rb in fuzzy_match-1.1.1 vs lib/fuzzy_match/identity.rb in fuzzy_match-1.2.1

- old
+ new

@@ -12,10 +12,10 @@ # # Only returns true/false if both strings match the regexp. # Otherwise returns nil. def identical?(str1, str2) if str1_match_data = regexp.match(str1) and match_data = regexp.match(str2) - str1_match_data.captures == match_data.captures + str1_match_data.captures.join.downcase == match_data.captures.join.downcase else nil end end end