@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
@@ -1,5 +1,11 @@
1
1
  # @torpor/view
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 84b5b9e: Fix: for var names before commas
8
+
3
9
  ## 0.4.3
4
10
 
5
11
  ### Patch Changes
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|\\.|\\(|\\)|\\[|\\]|\\}|;)`, "g"), `$1${varName[1]}$2`);
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