You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
$~ after String#sub with a block ignores a match made inside the block #137
After String#sub with a block, $~ should be whatever the block's frame last set. A match made inside the block is overwritten by sub's own match:
defm;"ab".sub(/(.)/){"x".match(/(.)/);"z"};p $1;endm# CRuby: "x" IronRuby: "a"
Found by running the scripts PR #119 deleted (Tests/Experiments, Tests/Legacy) on CRuby 4.0.9 and on IronRuby built from master c7f70cf (net10.0, Linux). (Experiments/Strings/sub_scan_regex.rb)
Activity
Merge pull request #147 from Largo/claude/core-fixes-from-old-tests