Skip to content

Commit b8e7074

Browse files
authored
Merge pull request #27 from cyMarvin/issue-20
Prevent pushing not loaded resources
2 parents fc488c8 + 77b8612 commit b8e7074

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/ResourceMatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public function match(string $input): array
4949
*/
5050
protected function getPattern(): string
5151
{
52-
return '/<script[\/\s\w\-="]*src=' . $this->resourcePattern . '[^>]*>'
52+
return '/<script[\/\s\w\-="]*[\s]+src=' . $this->resourcePattern . '[^>]*>'
5353
. '|' .
54-
'<link[\/\s\w\-="]*href=' . $this->resourcePattern . '[^>]*>'
54+
'<link[\/\s\w\-="]*[\s]+href=' . $this->resourcePattern . '[^>]*>'
5555
. '/ui';
5656
}
5757
}

0 commit comments

Comments
 (0)