diff options
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1392,7 +1392,9 @@ static void match_setter(val) VALUE val; { - Check_Type(val, T_MATCH); + if (!NIL_P(val)) { + Check_Type(val, T_MATCH); + } rb_backref_set(val); } |