diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | re.c | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Fri Sep 27 01:05:00 2013 Zachary Scott <e@zzak.io> + + * re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205] + Fri Sep 27 00:39:27 2013 Zachary Scott <e@zzak.io> * struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936] @@ -3276,6 +3276,9 @@ rb_reg_s_union(VALUE self, VALUE args0) * Regexp.union("skiing", "sledding") #=> /skiing|sledding/ * Regexp.union(["skiing", "sledding"]) #=> /skiing|sledding/ * Regexp.union(/dogs/, /cats/i) #=> /(?-mix:dogs)|(?i-mx:cats)/ + * + * Note: the arguments for ::union will try to be converted into a regular + * expression literal via #to_regexp. */ static VALUE rb_reg_s_union_m(VALUE self, VALUE args) |