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