From 1af1ab208ec9457eae63e878cd976c01b261e9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99drzy=C5=84ski?= Date: Mon, 8 Mar 2021 14:01:19 +0100 Subject: [PATCH 1/2] fix: langDir path must be escaped on windows --- src/templates/options.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/templates/options.js b/src/templates/options.js index 329d2c424..261215339 100644 --- a/src/templates/options.js +++ b/src/templates/options.js @@ -1,8 +1,6 @@ <% function stringifyValue(value) { - if (typeof value === 'string') { - return `'${value}'` - } else if (value === undefined || value === null || typeof value === 'boolean' || typeof value === 'function') { + if (value === undefined || value === null || typeof value === 'boolean' || typeof value === 'function') { return String(value); } else { return JSON.stringify(value) From 77cddf1204ede2bc96c09825bed66161f3e76efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99drzy=C5=84ski?= Date: Mon, 8 Mar 2021 14:27:40 +0100 Subject: [PATCH 2/2] removed null and boolean from stringify --- src/templates/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/options.js b/src/templates/options.js index 261215339..c0f91341b 100644 --- a/src/templates/options.js +++ b/src/templates/options.js @@ -1,6 +1,6 @@ <% function stringifyValue(value) { - if (value === undefined || value === null || typeof value === 'boolean' || typeof value === 'function') { + if (value === undefined || typeof value === 'function') { return String(value); } else { return JSON.stringify(value)