Fix String#index
to clear MatchData when a regexp is passed
#24659
Loading
String#index
to clear MatchData when a regexp is passed
#24659