Skip to content

Commit 7c16283

Browse files
committed
cleans up NUMERIC regexp
1 parent 389663a commit 7c16283

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
@@ -1,6 +1,6 @@
11
class Thor
22
class Arguments #:nodoc: # rubocop:disable ClassLength
3-
NUMERIC = /[-+]{0,1}(\d*\.\d+|\d+)/
3+
NUMERIC = /[-+]?(\d*\.\d+|\d+)/
44

55
# Receives an array of args and returns two arrays, one with arguments
66
# and one with switches.

0 commit comments

Comments
 (0)