mattn / mruby-onig-regexp

mrbgem of 鬼雲's Regular Expression
31 stars 36 forks source link

Ignore block instead of raising an ArgumentError #62

Closed ksss closed 7 years ago

ksss commented 7 years ago
"a".sub(/a/, "o"){"x"}
# Expect(CRuby) => "o"
# Actual        => both block and replace expression must not be passed (ArgumentError)
mattn commented 7 years ago

Thank you