mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Account for potential YAML output without quotes around keys with octothorps
This commit is contained in:
@@ -769,7 +769,7 @@ function translationsToYAML(translations) {
|
||||
}
|
||||
|
||||
return YAML.safeDump({ en: { presets: translations }}, { sortKeys: commentFirst, lineWidth: -1 })
|
||||
.replace(/\'.*#\':/g, '#');
|
||||
.replace(/[^\s]+#'?:/g, '#');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user