fix(formatter): fixed a few broken alpinejs attributes

closes #448
This commit is contained in:
Christopher Pickering 2022-11-09 15:08:58 +01:00
parent f135101cd8
commit 6c2d843c2f
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
2 changed files with 5 additions and 2 deletions

View file

@ -506,7 +506,7 @@ class Config:
rf"""
(?:
(
(?:\w|-|\.)+ | required | checked
(?:\w|-|\.|\:|@)+ | required | checked
)? # attribute name
(?: [ ]*?=[ ]*? # followed by "="
(

View file

@ -23,7 +23,10 @@ def test_alpine_js(runner: CliRunner, tmp_file: TextIO) -> None:
b"""<div id="collapse"
x-data="{ show: true }"
x-show="show"
x-transition.duration.500ms></div>""",
x-transition.duration.500ms
:disabled="!$store.userPreferences.deleteConfirm"
@click="clicked=true">
</div>""",
)
assert output.exit_code == 0