djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
686 stars 84 forks source link

[BUG] [Linter] H026 False positive on `data-id` #711

Closed silverwind closed 1 year ago

silverwind commented 1 year ago

System Info

Issue

H026 is likely only meant to match on id and class atttributes but matches on data-id as well which seems a unintended parser error.

How To Reproduce

<div data-id=""></div>

Contents of .djlintrc/pyproject.toml [tool.djlint]

[tool.djlint]
profile="golang"
christopherpickering commented 1 year ago

Yes thanks for catching. the regex \b and - combo will chase me forever lol.

christopherpickering commented 1 year ago

:tada: This issue has been resolved in version 1.32.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: