Commit d92b2d6
committed
fix(scripts): refactor regex loop to avoid assignment in expression
Refactored while loop in validate-no-cdn-refs.mjs to avoid assignment
in expression, which was flagged by biome's noAssignInExpressions rule.
The logic remains identical but now separates the assignment from the
conditional check.1 parent 96d0dd9 commit d92b2d6
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
0 commit comments