@torpor/view 0.4.3 → 0.4.4
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/dist/compile.js
CHANGED
|
@@ -681,7 +681,7 @@ function printDebug(varName, status, b) {}
|
|
|
681
681
|
* Variables used within a for loop need to be retrieved from the loop data.
|
|
682
682
|
*/
|
|
683
683
|
function replaceForVarNames(value, status) {
|
|
684
|
-
for (let varName of status.forVarNames) value = value.replaceAll(new RegExp(`(^|\\s|\\(|\\[|\\{|!)${varName[0]}($|\\s
|
|
684
|
+
for (let varName of status.forVarNames) value = value.replaceAll(new RegExp(`(^|\\s|\\(|\\[|\\{|!)${varName[0]}($|\\s|\\.|,|\\(|\\)|\\[|\\]|\\}|;)`, "g"), `$1${varName[1]}$2`);
|
|
685
685
|
return value;
|
|
686
686
|
}
|
|
687
687
|
|