nuejs-core
Advanced tools
Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "nuejs-core", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
@@ -5,0 +5,0 @@ "description": "The Nue framework for building user interfaces", |
@@ -85,4 +85,7 @@ | ||
const quote = str => `'${str}'` | ||
const arrwrap = str => '[' + str + ']' | ||
function arrwrap(str) { | ||
return '[' + str + ']' | ||
} | ||
function getHTML(str) { | ||
@@ -89,0 +92,0 @@ str = str.trim() |
@@ -38,3 +38,6 @@ | ||
if (i % 2 == 0) { | ||
if (str) ret.push(str.includes("'") ? JSON.stringify(str) : `'${str}'`) | ||
if (str) { | ||
str = str.replace(/\s+/g, ' ') | ||
ret.push(str.includes("'") ? JSON.stringify(str) : `'${str}'`) | ||
} | ||
@@ -41,0 +44,0 @@ // Object: { is-active: isActive() } |
@@ -20,4 +20,2 @@ | ||
function renderExpr(str, data, is_class) { | ||
str = str.replaceAll('\n', '\\n') | ||
try { | ||
@@ -24,0 +22,0 @@ const arr = exec('[' + parseExpr(str) + ']', data) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81815
1569