Skip to content

Commit 305e740

Browse files
committed
[TASK] Add code comment
1 parent c1d2f64 commit 305e740

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Property/Selector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public function setSelector(string $selector): void
7979

8080
$hasAttribute = \strpos($selector, '[') !== false;
8181

82+
// Whitespace can't be adjusted within an attribute selector, as it would change its meaning
8283
$this->selector = !$hasAttribute ? preg_replace('/\\s++/', ' ', $selector) : $selector;
8384
}
8485

0 commit comments

Comments
 (0)