Account for potential YAML output without quotes around keys with octothorps

This commit is contained in:
Quincy Morgan
2020-05-29 16:34:05 -04:00
parent 0a16fc21cb
commit 5fb7136e93
2 changed files with 2 additions and 2 deletions

View File

@@ -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",

View File

@@ -769,7 +769,7 @@ function translationsToYAML(translations) {
}
return YAML.safeDump({ en: { presets: translations }}, { sortKeys: commentFirst, lineWidth: -1 })
.replace(/\'.*#\':/g, '#');
.replace(/[^\s]+#'?:/g, '#');
}