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