зеркало из https://github.com/github/ruby.git
* lib/shellwords.rb: don't destroy argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7dc25230be
Коммит
bfd441db8f
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Jun 4 04:14:53 2001 Wakou Aoyama <wakou@fsinet.or.jp>
|
||||||
|
|
||||||
|
* lib/shellwords.rb: don't destroy argument.
|
||||||
|
|
||||||
Sat Jun 2 23:05:20 2001 Shugo Maeda <shugo@ruby-lang.org>
|
Sat Jun 2 23:05:20 2001 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* lib/cgi/session.rb: don't use module_function for Class.
|
* lib/cgi/session.rb: don't use module_function for Class.
|
||||||
|
|
|
@ -16,7 +16,7 @@ module Shellwords
|
||||||
unless line.kind_of?(String)
|
unless line.kind_of?(String)
|
||||||
raise ArgumentError, "Argument must be String class object."
|
raise ArgumentError, "Argument must be String class object."
|
||||||
end
|
end
|
||||||
line.sub!(/\A\s+/, '')
|
line = line.sub(/\A\s+/, '')
|
||||||
words = []
|
words = []
|
||||||
while line != ''
|
while line != ''
|
||||||
field = ''
|
field = ''
|
||||||
|
|
Загрузка…
Ссылка в новой задаче