diff --git a/ChangeLog b/ChangeLog index 6cf5e684bd..5e839098d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Nov 5 00:01:33 2007 Tanaka Akira + + * re.c (rb_reg_quote): quote \v as well. + Sun Nov 4 23:51:59 2007 Tanaka Akira * re.c (rb_reg_initialize_m): use StringValuePtr instead of diff --git a/re.c b/re.c index a6b9828a69..573fb2ee3b 100644 --- a/re.c +++ b/re.c @@ -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; }