Fix missing trailing quote if following escaped quote. #385
This commit is contained in:
parent
91e8e6bf1e
commit
3cd1a87c44
|
@ -370,7 +370,7 @@ module PoConvertModule
|
||||||
line.lstrip.gsub(/\\x(..)/) { |g| [$1.hex].pack('c*').force_encoding('UTF-8') }
|
line.lstrip.gsub(/\\x(..)/) { |g| [$1.hex].pack('c*').force_encoding('UTF-8') }
|
||||||
end
|
end
|
||||||
# Eliminate C double-double-quotes.
|
# Eliminate C double-double-quotes.
|
||||||
tmp = tmp.join.gsub(/""/) { |g| }
|
tmp = tmp.join.gsub(/(?<!\\)""/) { |g| }
|
||||||
self.items[l_key][num_case][:string] = tmp
|
self.items[l_key][num_case][:string] = tmp
|
||||||
end
|
end
|
||||||
if !self.items || self.items.empty?
|
if !self.items || self.items.empty?
|
||||||
|
|
Loading…
Reference in a new issue