Skip to content

Commit 7fc2511

Browse files
committed
[BUGFIX] Use the safe regexp functions in CSSList
1 parent 25877ed commit 7fc2511

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Please also have a look at our
1818

1919
### Fixed
2020

21+
- Use typesafe versions of PHP functions (#1368)
22+
2123
### Documentation
2224

2325
## 9.0.0: New features, deprecation removals and bug fixes

src/CSSList/CSSList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private static function identifierIs(string $identifier, string $match): bool
242242
return true;
243243
}
244244

245-
return \preg_match("/^(-\\w+-)?$match$/i", $identifier) === 1;
245+
return preg_match("/^(-\\w+-)?$match$/i", $identifier) === 1;
246246
}
247247

248248
/**

0 commit comments

Comments
 (0)