summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-22 03:46:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-22 03:46:16 +0000
commit9b3344c94d527d58886c5774f77d3cec01e472d1 (patch)
tree1ca5972579d5ecfe5394b51bb725aa62489557ad /lib
parentcdfb48ea7da4439d12b3a1936ad6d17b221e6740 (diff)
* lib/uri/common.rb: `[', `]', `-' in chracter
class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/uri/common.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index 561b9ecb5b..e9b7ce9b0a 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -31,7 +31,7 @@ module URI
# mark = "-" | "_" | "." | "!" | "~" | "*" | "'" |
# "(" | ")"
# unreserved = alphanum | mark
- UNRESERVED = "-_.!~*'()#{ALNUM}"
+ UNRESERVED = "\\-_.!~*'()#{ALNUM}"
# reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
# "$" | ","
# reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |