We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389663a commit 7c16283Copy full SHA for 7c16283
lib/thor/parser/arguments.rb
@@ -1,6 +1,6 @@
1
class Thor
2
class Arguments #:nodoc: # rubocop:disable ClassLength
3
- NUMERIC = /[-+]{0,1}(\d*\.\d+|\d+)/
+ NUMERIC = /[-+]?(\d*\.\d+|\d+)/
4
5
# Receives an array of args and returns two arrays, one with arguments
6
# and one with switches.
0 commit comments