mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
2ef3a7c21e
Regexp#match and Regexp#=~ shared most of their logic (get pattern, execute, create MatchData, set globals). Extracted into exec_match() internal function. Regexp#=~ now calls exec_match() and reads the match position from the returned MatchData. Co-authored-by: Claude <noreply@anthropic.com>