From a0a3adc13bb16d4ec4ffcdd94e24b318f8e9bbad 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:40:12 +0100 Subject: [PATCH] fix: ensure langDir is escaped on Windows (#1097) --- 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..c0f91341b 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 || typeof value === 'function') { return String(value); } else { return JSON.stringify(value)