diff options
Diffstat (limited to 'lib/shellwords.rb')
-rw-r--r-- | lib/shellwords.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shellwords.rb b/lib/shellwords.rb index 5c31f8ca78..9fd7571172 100644 --- a/lib/shellwords.rb +++ b/lib/shellwords.rb @@ -16,7 +16,7 @@ module Shellwords unless line.kind_of?(String) raise ArgumentError, "Argument must be String class object." end - line.sub!(/\A\s+/, '') + line = line.sub(/\A\s+/, '') words = [] while line != '' field = '' |