We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9689025 commit 28e3d9eCopy full SHA for 28e3d9e
lib/baseline_i18n_extractor.rb
@@ -150,8 +150,8 @@ def generate_yaml_content(i18n_data)
150
lines << " #{line}"
151
end
152
else
153
- # Escape quotes in the value
154
- escaped_value = field_value.gsub('"', '\"')
+ # Escape backslashes first, then quotes (order matters!)
+ escaped_value = field_value.gsub('\\', '\\\\').gsub('"', '\\"')
155
lines << " #{field_name}: \"#{escaped_value}\""
156
157
0 commit comments