mirror of
https://github.com/ruby/ruby.git
synced 2026-08-21 03:34:31 +08:00
(https://github.com/ruby/strscan/pull/195) * Fixes https://github.com/ruby/strscan/issues/194. * This is a fresh new implementation from scratch, contributed directly to ruby/strscan, under BSD-2-Clause. This was implemented using the strscan tests, specs from ruby/spec and the documentation (https://docs.ruby-lang.org/en/master/StringScanner.html). * lib/strscan.rb now handles the loading for all implementations. * Test on TruffleRuby 33 to ensure it keeps working on older TruffleRuby releases, which do not have the necessary Primitives used by this new implementation. --------- https://github.com/ruby/strscan/commit/3908e0ddb0 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>