General

Profile

avyy (Alexander Yunin)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

09/04/2013

09:58 PM Ruby Bug #8205: Regexp.union behavior and Regexp.try_convert
Hello,
Bug description is incorrect, sorry. Now i want to say that implementation of String#to_regexp can breaks behavior of Regexp::union.
class String
def to_regexp
/regexp/
end
end
Regexp.union('/some_regexp/') #=>...
avyy (Alexander Yunin)

04/02/2013

11:21 PM Ruby Bug #8205 (Closed): Regexp.union behavior and Regexp.try_convert
Hi! Why Regexp.union('/../') trying to convert string with directly call rb_check_regexp_type(arg) (re.c:3139) instead of rb_reg_s_try_convert (re.c:3122)? I think second variant would be more correct, and i would be able to rewrite Rege... avyy (Alexander Yunin)

Also available in: Atom