diff options
-rw-r--r-- | re.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3084,6 +3084,9 @@ reg_operand(VALUE s, int check) if (SYMBOL_P(s)) { return rb_sym2str(s); } + else if (RB_TYPE_P(s, T_STRING)) { + return s; + } else { return check ? rb_str_to_str(s) : rb_check_string_type(s); } |