lib/ctioga2/commands/strings.rb in ctioga2-0.4 vs lib/ctioga2/commands/strings.rb in ctioga2-0.5

- old
+ new

@@ -14,11 +14,11 @@ require 'ctioga2/utils' require 'stringio' # For debugging purposes module CTioga2 - Version::register_svn_info('$Revision: 2 $', '$Date: 2009-04-25 14:03:30 +0200 (Sat, 25 Apr 2009) $') + Version::register_svn_info('$Revision: 400 $', '$Date: 2013-08-19 17:29:57 +0200 (Mon, 19 Aug 2013) $') module Commands class UnterminatedString < Exception end @@ -254,10 +254,10 @@ case type when :quoted cur_str += value when :unquoted tmp = value.split(re, -1) - cur_str += tmp[0] + cur_str += tmp[0] if tmp.size > 0 # Push splitted stuff here: while tmp.size > 1 retval << cur_str tmp.shift cur_str = tmp[0]