Skip to content

Conversation

oliverklee
Copy link
Collaborator

Part of #1168

@coveralls
Copy link

coveralls commented Sep 17, 2025

Coverage Status

coverage: 59.658%. remained the same
when pulling 3585554 on task/safe/cssstring
into 9ad776b on main.

Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR number in the changelog is wrong.

@@ -54,7 +56,7 @@ public static function parse(ParserState $parserState): CSSString
$content = null;
if ($quote === null) {
// Unquoted strings end in whitespace or with braces, brackets, parentheses
while (\preg_match('/[\\s{}()<>\\[\\]]/isu', $parserState->peek()) !== 1) {
while (preg_match('/[\\s{}()<>\\[\\]]/isu', $parserState->peek()) === 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree === 0 is clearer, now that we can test like that.

Co-authored-by: JakeQZ <[email protected]>
@oliverklee oliverklee requested a review from JakeQZ September 19, 2025 07:00
@JakeQZ JakeQZ merged commit 6bfa357 into main Sep 19, 2025
23 checks passed
@JakeQZ JakeQZ deleted the task/safe/cssstring branch September 19, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants