Skip to content

Commit aef04a9

Browse files
aldoruizlunaclaude
andauthored
fix(voronoi): cell-density constraint in the Studio dialect (#190)
constraints[2] (a `rule`, which useConstraints reads when there is no `expression`) joined its two comparisons with the word `or`, which the Studio's safeFormula parser does not have: it stops at `or` as a trailing token and throws, useConstraints swallows the error and the warning never fired. `||` binds looser than the comparisons in safeFormula, so the rewrite has the same meaning. Severity, applies_to and both messages are unchanged. Signed-off-by: Aldo Ruiz Luna <aldo.ruiz.luna@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0322a5f commit aef04a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎voronoi/project.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
]
403403
},
404404
{
405-
"rule": "cell_count <= 40 or size >= 80",
405+
"rule": "cell_count <= 40 || size >= 80",
406406
"message": {
407407
"es": "Muchas celdas en tamano pequeno pueden fallar",
408408
"en": "Many cells at small size may fail to print"

0 commit comments

Comments
 (0)