summaryrefslogtreecommitdiff
path: root/lib/slop/parser.rb
diff options
context:
space:
mode:
authorLee Jarvis <leejarvis@fastmail.com>2022-03-26 08:58:45 +0000
committerGitHub <noreply@github.com>2022-03-26 08:58:45 +0000
commit63d69edc1642589082306da5abc3bcf2a1df2ef7 (patch)
treec237da22a194f9ae5e0a6af7ae894b5318c92d48 /lib/slop/parser.rb
parent0e1d8d0168fc6a6b647cecda0b73d97d1484a563 (diff)
parent8ae2eae0bf0b09346589bb57bdb13c86d96b6e0f (diff)
downloadslop-63d69edc1642589082306da5abc3bcf2a1df2ef7.tar.gz
Merge pull request #275 from ConnorWGarvey/equals
Handle strings containing =
Diffstat (limited to 'lib/slop/parser.rb')
-rw-r--r--lib/slop/parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slop/parser.rb b/lib/slop/parser.rb
index 49d0230..3c2c9c6 100644
--- a/lib/slop/parser.rb
+++ b/lib/slop/parser.rb
@@ -52,7 +52,7 @@ module Slop
# support `foo=bar`
orig_flag = flag.dup
- if match = flag.match(/([^=]+)=([^=]*)/)
+ if match = flag.match(/([^=]+)=(.*)/)
flag, arg = match.captures
end