summaryrefslogtreecommitdiff
path: root/lib/shellwords.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shellwords.rb')
-rw-r--r--lib/shellwords.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/shellwords.rb b/lib/shellwords.rb
index 9fd7571..6fb40e8 100644
--- a/lib/shellwords.rb
+++ b/lib/shellwords.rb
@@ -26,9 +26,8 @@ module Shellwords
snippet.gsub!(/\\(.)/, '\1')
elsif line =~ /\A"/ then #"
raise ArgumentError, "Unmatched double quote: #{line}"
- elsif line.sub!(/\A'(([^'\\]|\\.)*)'/, '') then #'
+ elsif line.sub!(/\A'([^']*)'/, '') then #'
snippet = $1
- snippet.gsub!(/\\(.)/, '\1')
elsif line =~ /\A'/ then #'
raise ArgumentError, "Unmatched single quote: #{line}"
elsif line.sub!(/\A\\(.)/, '') then