summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-07 08:32:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-07 08:32:01 +0000
commit253581c432a4d2dccfe9f12102bafd9d8cc12c5a (patch)
tree016a66d71e79c14d451ff959a13be28f37883749 /re.c
parentd303a22fccd1ce4bc59e3c98862ee4a87b4715b3 (diff)
* re.c (rb_reg_s_quote): # also should be quoted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2440 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 309b9ef578..d63ae67eea 100644
--- a/re.c
+++ b/re.c
@@ -1216,7 +1216,7 @@ rb_reg_s_quote(argc, argv)
case '(': case ')': case '|': case '-':
case '*': case '.': case '\\':
case '?': case '+': case '^': case '$':
- case ' ':
+ case ' ': case '#':
*t++ = '\\';
break;
}