Skip to content

fix(executor): preserve literal ampersands in conditions - #108

Merged
Gubarz merged 1 commit into
mainfrom
fix/conditional-literal-ampersands
Nov 25, 2026
Merged

Gubarz merged 1 commit into
mainfrom
fix/conditional-literal-ampersands

Conversation

@Gubarz

@Gubarz Gubarz commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Preserve literal ampersands in comparisons such as if $flavor == Rock && Roll.
  • Keep explicit variable conjunctions working and evaluate the predicates from nested if blocks separately.

Related issues

Follow-up to #88.

Verification

The new headless test reproduced both the missed full match and the false match on Rock before the fix. The built CLI now takes the intended branch in both cases. It also passes smoke tests for nested conditions and explicit conjunctions.

Checklist

  • go build ./... and go test ./... pass
  • gofmt -l . and go vet ./... are clean
  • Added regression tests for the changed behavior
  • cheatmd --lint examples/ passes

@Gubarz
Gubarz merged commit 5f46f6e into main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant