1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--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
spell_checkers Should require "rbconfig" to use RbConfig 2021-06-29 15:49:51 +09:00
did_you_mean.gemspec
experimental.rb
jaro_winkler.rb
levenshtein.rb
spell_checker.rb
tree_spell_checker.rb
verbose.rb
version.rb