[ruby-core:114263] [Ruby master Bug#19746] `String#index` with regexp and too large offset doesn't clear `$~`