Fix missing trailing quote if following escaped quote. #385

This commit is contained in:
Jim Derry 2016-03-22 11:01:41 +08:00
parent 91e8e6bf1e
commit 3cd1a87c44

View file

@ -370,7 +370,7 @@ module PoConvertModule
line.lstrip.gsub(/\\x(..)/) { |g| [$1.hex].pack('c*').force_encoding('UTF-8') }
end
# Eliminate C double-double-quotes.
tmp = tmp.join.gsub(/""/) { |g| }
tmp = tmp.join.gsub(/(?<!\\)""/) { |g| }
self.items[l_key][num_case][:string] = tmp
end
if !self.items || self.items.empty?