From 65ef4076ac646d52fe936768c7a04284130b0fa9 Mon Sep 17 00:00:00 2001 From: Daniel Shuy Date: Wed, 15 Nov 2023 17:44:20 +0800 Subject: [PATCH] Double quote YAML strings Signed-off-by: Daniel Shuy --- config-merge.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config-merge.js b/config-merge.js index ae2a84d..fc39a10 100644 --- a/config-merge.js +++ b/config-merge.js @@ -238,7 +238,10 @@ if (format == "json") { } }) } else { - serialized = YAML.stringify(obj, options={simpleKeys: true}) + serialized = YAML.stringify(obj, { + defaultStringType: 'QUOTE_DOUBLE', + simpleKeys: true + }) } if (format == "json" || format == "json5" || format == "toml") {