diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-04 15:03:31 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-04 15:03:31 +0000 |
commit | c6fa7415387e12d9cc5eaca4c0f4f9b51cfc8092 (patch) | |
tree | b35b72247dd88865adf6a825679311bbfc714459 | |
parent | 1ba0b278f9b4b927257e0a703ffa0283dba83f2d (diff) | |
download | ruby-c6fa7415387e12d9cc5eaca4c0f4f9b51cfc8092.tar.gz ruby-c6fa7415387e12d9cc5eaca4c0f4f9b51cfc8092.tar.xz ruby-c6fa7415387e12d9cc5eaca4c0f4f9b51cfc8092.zip |
* re.c (rb_reg_quote): quote \v as well.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | re.c | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Nov 5 00:01:33 2007 Tanaka Akira <akr@fsij.org> + + * re.c (rb_reg_quote): quote \v as well. + Sun Nov 4 23:51:59 2007 Tanaka Akira <akr@fsij.org> * re.c (rb_reg_initialize_m): use StringValuePtr instead of @@ -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; } |