diff options
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1653,7 +1653,7 @@ rb_reg_quote(VALUE str) case '*': case '.': case '\\': case '?': case '+': case '^': case '$': case ' ': case '#': - case '\t': case '\f': case '\n': case '\r': + case '\t': case '\f': case '\v': case '\n': case '\r': goto meta_found; } } @@ -1705,6 +1705,10 @@ rb_reg_quote(VALUE str) *t++ = '\\'; *t++ = 'f'; continue; + case '\v': + *t++ = '\\'; + *t++ = 'v'; + continue; } *t++ = c; } |