mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit/assertions.rb (build_message): skip escaped
question marks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
391b579097
commit
799680354e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Feb 14 15:06:37 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/test/unit/assertions.rb (build_message): skip escaped
|
||||
question marks.
|
||||
|
||||
Tue Feb 14 12:10:04 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* variable.c (autoload_const_set, autoload_require): fix
|
||||
|
|
|
@ -317,7 +317,7 @@ EOT
|
|||
|
||||
def build_message(head, template=nil, *arguments) #:nodoc:
|
||||
template &&= template.chomp
|
||||
template.gsub(/\?/) { mu_pp(arguments.shift) }
|
||||
template.gsub(/\G((?:[^\\]|\\.)*?)(\\)?\?/) { $1 + ($2 ? "?" : mu_pp(arguments.shift)) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue