(https://github.com/ruby/strscan/pull/126) Split off from https://github.com/ruby/ruby/pull/12322 9bee37e0f5
9bee37e0f5