Skip to content

Commit ed602ea

Browse files
committed
Fix "warning: deprecated Object#=~ is called on Integer"
`Object#=~` is deprecated in Ruby 2.6. Ref: https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=65989&view=revision
1 parent d3762d0 commit ed602ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/parser/arguments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def self.split(args)
99
arguments = []
1010

1111
args.each do |item|
12-
break if item =~ /^-/
12+
break if item.is_a?(String) && item =~ /^-/
1313
arguments << item
1414
end
1515

0 commit comments

Comments
 (0)