Fix class detection in Slim templates with attached attributes and IDs (#14019)

* Fix class detection in Slim templates with attached attributes and IDs

* Update changelog

* Tweak regex
This commit is contained in:
Jordan Pittman 2024-07-18 11:21:20 -04:00 • committed by GitHub
parent d622977b2a
commit bdc87ae1d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 1 deletions

View file

@ -152,6 +152,9 @@ function* buildRegExps(context) {
utility,
])
}
// 5. Inner matches
yield /[^<>"'`\s.(){}[\]#=%$][^<>"'`\s(){}[\]#=%$]*[^<>"'`\s.(){}[\]#=%:$]/g
}
// We want to capture any "special" characters