-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(embed): Replace all instances of invalid characters inside expres…
…sions (#378) * fix(embed): Replace all instances of invalid characters inside expressions * chore: changeset
- Loading branch information
1 parent
40a58f1
commit 0188f04
Showing
5 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'prettier-plugin-astro': patch | ||
--- | ||
|
||
Fix attributes with multiple invalid JSX characters in their key inside expressions causing the plugin to throw an error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,9 @@ | |
|
||
</div> | ||
} | ||
|
||
{true && <div x-on:click.stop.prevent="console.log('yay');"> | ||
|
||
|
||
|
||
blah</div>} |
2 changes: 2 additions & 0 deletions
2
test/fixtures/other/non-jsx-compatible-characters/output.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{(<div @do={0}>Astro!</div>)} | ||
|
||
{(<div do.do={0}>Astro!</div>)} | ||
|
||
{true && <div x-on:click.stop.prevent="console.log('yay');">blah</div>} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters