lib/fuzzy_match/wrapper.rb in fuzzy_match-1.1.0 vs lib/fuzzy_match/wrapper.rb in fuzzy_match-1.1.1
- old
+ new
@@ -48,10 +48,10 @@
alias :to_str :render
# "Foo's Bar" should be treated as [ "Foo's", "Bar" ], so we don't use traditional regexp word boundaries (\b)
WORD_BOUNDARY = %r{\s+}
def words
- @words ||= render.split(WORD_BOUNDARY)
+ @words ||= render.downcase.split(WORD_BOUNDARY)
end
def similarity(other)
Similarity.new self, other
end