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

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