mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/redmine-backporter.rb: now doesn't required spaces just after
`!`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d289a78549
commit
8ea6b7a137
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 24 16:46:02 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* tool/redmine-backporter.rb: now doesn't required spaces just after
|
||||
`!`.
|
||||
|
||||
Mon Mar 23 23:18:27 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (dir_close): don't raise on dobule close for consistent to
|
||||
|
|
|
@ -558,7 +558,7 @@ while true
|
|||
break
|
||||
end
|
||||
break unless l
|
||||
cmd, args = l.strip.split(/\s+/, 2)
|
||||
cmd, args = l.strip.split(/\s+|\b/, 2)
|
||||
next unless cmd
|
||||
if (!args || args.empty?) && /\A\d+\z/ =~ cmd
|
||||
args = cmd
|
||||
|
@ -570,7 +570,7 @@ while true
|
|||
cmd = list[cmd]
|
||||
begin
|
||||
if cmd
|
||||
commands[cmd].call(args.to_s)
|
||||
commands[cmd].call(args)
|
||||
else
|
||||
raise CommandSyntaxError
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue