Actions
Bug #18160
closedIndexError raised from MatchData#{offset,begin,end} does not keep the encoding of the argument
Bug #18160:
IndexError raised from MatchData#{offset,begin,end} does not keep the encoding of the argument
Description
m = /.*/.match("foo")
m.offset("\u{3042}") rescue p $!.message
#=> "undefined group name reference: \xE3\x81\x82"
Actions