iij/mruby-regexp-pcre

$` in String#scan block differs from MRI.

tsahara opened this issue · 0 comments

% ruby -e '"abc".scan(/./) { |m| p $` }'
""
"a"
"ab"

% mruby -e '"abc".scan(/./) { |m| p $` }'
""
""
""