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 e6e0c1c commit 67ef267Copy full SHA for 67ef267
lib/puppet/functions/accounts_ssh_options_parser.rb
@@ -17,7 +17,7 @@ def accounts_ssh_options_parser_string(str)
17
str.scan(%r{\G\,*(?>([^\,\\\'\"]+)|'([^\']*)'|("(?:[^\"\\]|\\.)*")|(\\.?)|(\S))(\,|\z)?}m) do |word, sq, dq, esc, garbage, sep|
18
raise ArgumentError, _('Unmatched double quote: %{str_inspect}') % { str_inspect: str.inspect } if garbage
19
20
- field << (word || sq || dq || esc.gsub(%r{\\(.)}, '\\1'))
+ field += (word || sq || dq || esc.gsub(%r{\\(.)}, '\\1'))
21
field.gsub(%r{\\=}, '\\=\"')
22
if sep
23
words << field
0 commit comments