ruby/lib/did_you_mean
Yusuke Endoh 809f120374 Use String#include? instead of end_with? to avoid message duplication
Previously, did_you_mean used `msg.end_with?(suggestion)` to check if
its suggestion is already added.

I'm now creating a gem that also modifies Exception's message. This
breaks did_you_mean's duplication check.
This change makes the check use String#include? instead of end_with?.

https://github.com/ruby/did_you_mean/commit/b35e030549
2021-06-29 15:49:51 +09:00
..
core_ext Use String#include? instead of end_with? to avoid message duplication 2021-06-29 15:49:51 +09:00
formatters Promote did_you_mean to default gem 2019-11-30 21:08:19 -05:00
spell_checkers Should require "rbconfig" to use RbConfig 2021-06-29 15:49:51 +09:00
did_you_mean.gemspec Fix `warning: already initialized constant DidYouMean::VERSION` 2019-12-05 18:18:55 +09:00
experimental.rb Promote did_you_mean to default gem 2019-11-30 21:08:19 -05:00
jaro_winkler.rb Promote did_you_mean to default gem 2019-11-30 21:08:19 -05:00
levenshtein.rb Promote did_you_mean to default gem 2019-11-30 21:08:19 -05:00
spell_checker.rb Promote did_you_mean to default gem 2019-11-30 21:08:19 -05:00
tree_spell_checker.rb Sync did_you_mean 2020-06-06 13:02:08 -04:00
verbose.rb Promote did_you_mean to default gem 2019-11-30 21:08:19 -05:00
version.rb Start v1.6.0 development 2021-06-29 15:49:51 +09:00