@videinfra/static-website-builder 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -88,8 +88,8 @@ const handleError = (error, file, callback) => {
|
|
|
88
88
|
* @returns {string} Escaped value
|
|
89
89
|
*/
|
|
90
90
|
const escapeSCSSVariable = (value) => {
|
|
91
|
-
if (value === true || value === false || !isNaN(value)) {
|
|
92
|
-
return value;
|
|
91
|
+
if (value !== '' && (value === true || value === false || !isNaN(value))) {
|
|
92
|
+
return String(value);
|
|
93
93
|
} else {
|
|
94
94
|
// Convert to string
|
|
95
95
|
return "'" + value.toString().replace(/\\/g, '\\\\').replace(/'/g, '\\\'').replace(/\n/g, '\\n') + "'";
|