summaryrefslogtreecommitdiffstats
path: root/lib/rubygems
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-23 18:53:52 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-23 18:53:52 +0000
commit668d110f4864e2385f7a7e0e625adf59d85306b9 (patch)
tree2ad1bd217f82eccd88201b92537a0ff0d7453132 /lib/rubygems
parentbe51d2e8f0881a3b662886e82cacf7a77ca2b76d (diff)
downloadruby-668d110f4864e2385f7a7e0e625adf59d85306b9.tar.gz
ruby-668d110f4864e2385f7a7e0e625adf59d85306b9.tar.xz
ruby-668d110f4864e2385f7a7e0e625adf59d85306b9.zip
* lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb,
test/logger/test_logger.rb, test/ruby/test_regexp.rb: fix tests. [ruby-dev:33336] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/open-uri.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/open-uri.rb b/lib/rubygems/open-uri.rb
index ffc8e4857..50fa94374 100644
--- a/lib/rubygems/open-uri.rb
+++ b/lib/rubygems/open-uri.rb
@@ -426,7 +426,7 @@ module OpenURI
subtype = $2.downcase
parameters = []
$3.scan(/;#{RE_LWS}?(#{RE_TOKEN})#{RE_LWS}?=#{RE_LWS}?(?:(#{RE_TOKEN})|(#{RE_QUOTED_STRING}))/no) {|att, val, qval|
- val = qval.gsub(/[\r\n\t !#-\[\]-~\x80-\xff]+|(\\[\x00-\x7f])/) { $1 ? $1[1,1] : $& } if qval
+ val = qval.gsub(/[\r\n\t !#-\[\]-~\x80-\xff]+|(\\[\x00-\x7f])/n) { $1 ? $1[1,1] : $& } if qval
parameters << [att.downcase, val]
}
["#{type}/#{subtype}", *parameters]