Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression in expressions #937

Merged
merged 4 commits into from
Jan 9, 2024
Merged

Fix regression in expressions #937

merged 4 commits into from
Jan 9, 2024

Conversation

MoustaphaDev
Copy link
Member

@MoustaphaDev MoustaphaDev commented Jan 9, 2024

Changes

Found the issue on discord
Fixes a regression introduced in #930. We were only looking for nil or an empty text node in the first child of the expression, instead making sure that all children match that criteria before assuming it's an empty expression

Testing

Added a printer test

Docs

N/A bug fix

Copy link

changeset-bot bot commented Jan 9, 2024

🦋 Changeset detected

Latest commit: 2967451

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/compiler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MoustaphaDev MoustaphaDev changed the title Fix regression Fix regression in expressions Jan 9, 2024
@florian-lefebvre
Copy link
Member

Does this fix #852?

@MoustaphaDev
Copy link
Member Author

MoustaphaDev commented Jan 9, 2024

Nope, it's #916 that's dealing with it apparently

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@natemoo-re natemoo-re merged commit 7a07089 into main Jan 9, 2024
5 checks passed
@natemoo-re natemoo-re deleted the fix-expr-regrss branch January 9, 2024 14:48
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.

4 participants