mattn / mruby-onig-regexp

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

Shouldn't raise IndexError #55

Closed ksss closed 7 years ago

ksss commented 7 years ago

Treats \1 sequences without corresponding captures as empty strings.

See also https://github.com/ruby/spec/blob/0fe99d24f4a17eaa39563623209747eee278c3d1/core/string/gsub_spec.rb#L89-L98

mattn commented 7 years ago

💯