Skip to content

Commit 700d9e3

Browse files
aldoruizlunaclaude
andauthored
fix(battery-pocket-frame): corner-radius constraint in the Studio dialect (#187)
constraints[2] joined its two comparisons with the word `and`, which the Studio's safeFormula parser does not have: it stops at `and` as a trailing token and throws, useConstraints swallows the error and the rule never fired. `&&` binds looser than the comparisons in safeFormula, so the rewrite has the same meaning. Severity 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 97fa11b commit 700d9e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎battery-pocket-frame/project.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
}
397397
},
398398
{
399-
"expression": "corner_r <= bay_w / 3 and corner_r <= bay_h / 3",
399+
"expression": "corner_r <= bay_w / 3 && corner_r <= bay_h / 3",
400400
"severity": "error",
401401
"message": {
402402
"es": "El radio de esquina no puede pasar de un tercio del lado menor del hueco (bay_w, bay_h).",

0 commit comments

Comments
 (0)