From 9b3344c94d527d58886c5774f77d3cec01e472d1 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 22 Mar 2003 03:46:16 +0000 Subject: [PATCH] * 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 --- ChangeLog | 2 +- lib/uri/common.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b96fac8399..9639d057c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -Sat Mar 22 01:59:04 2003 Tanaka Akira +Sat Mar 22 12:44:15 2003 Tanaka Akira * lib/date/format.rb, lib/uri/common.rb: `[', `]', `-' in chracter class in regexp to avoid warning. 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 = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |