Fix fractional values not being parsed properly inside arbitrary properties (#9705)

* remove redundant closing bracket in regex pattern

* test fractional spacing values in theme function

* add test that ensures arbitrary properties are separate

* update changelog

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
This commit is contained in:
Ankan Bag 2022-11-03 15:40:33 +05:30 • committed by GitHub
parent 88dcb6ebc5
commit c10ba4e9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 94 additions and 1 deletions

View file

@ -29,7 +29,7 @@ function* buildRegExps(context) {
let utility = regex.any([
// Arbitrary properties
/\[[^\s:'"`]+:[^\s\]]+\]/,
/\[[^\s:'"`]+:[^\s]+\]/,
// Utilities
regex.pattern([