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