summaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/re.c b/re.c
index a6b9828a6..573fb2ee3 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;
}