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