diff options
author | Lee Jarvis <leejarvis@fastmail.com> | 2022-03-26 08:58:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 08:58:45 +0000 |
commit | 63d69edc1642589082306da5abc3bcf2a1df2ef7 (patch) | |
tree | c237da22a194f9ae5e0a6af7ae894b5318c92d48 /lib/slop/parser.rb | |
parent | 0e1d8d0168fc6a6b647cecda0b73d97d1484a563 (diff) | |
parent | 8ae2eae0bf0b09346589bb57bdb13c86d96b6e0f (diff) | |
download | slop-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.rb | 2 |
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 |