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