mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-06 11:21:33 +00:00
Account for potential YAML output without quotes around keys with octothorps
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
"gaze": "^1.1.3",
|
||||
"glob": "^7.1.0",
|
||||
"happen": "^0.3.1",
|
||||
"js-yaml": "^3.13.1",
|
||||
"js-yaml": "^3.14.0",
|
||||
"json-stringify-pretty-compact": "^1.1.0",
|
||||
"jsonschema": "^1.1.0",
|
||||
"mapillary-js": "~2.20.0",
|
||||
|
||||
@@ -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