summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-17 05:06:31 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-17 05:06:31 +0000
commitc7e9e1f8f9a61792586276bbbd28104c4e838126 (patch)
tree11b456aa3b52fe4885c15ccf7d58397c3aba5d75 /re.c
parentad56376d19a40131545ed796b9ec5671d6694087 (diff)
* parse.y (parse_regx): handle backslash escaping of delimiter here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 0cf81ef607..172ce55124 100644
--- a/re.c
+++ b/re.c
@@ -214,7 +214,7 @@ rb_reg_expr_str(str, s, len)
const char *p, *pend;
int need_escape = 0;
- p = s; pend = p + len;
+ p = s; pend = p + len;
while (p<pend) {
if (*p == '/' || (!ISPRINT(*p) && !ismbchar(*p))) {
need_escape = 1;