Skip to content

Commit

Permalink
Merge pull request #27 from cyMarvin/issue-20
Browse files Browse the repository at this point in the history
Prevent pushing not loaded resources
  • Loading branch information
bmack authored May 2, 2024
2 parents fc488c8 + 77b8612 commit b8e7074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ResourceMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public function match(string $input): array
*/
protected function getPattern(): string
{
return '/<script[\/\s\w\-="]*src=' . $this->resourcePattern . '[^>]*>'
return '/<script[\/\s\w\-="]*[\s]+src=' . $this->resourcePattern . '[^>]*>'
. '|' .
'<link[\/\s\w\-="]*href=' . $this->resourcePattern . '[^>]*>'
'<link[\/\s\w\-="]*[\s]+href=' . $this->resourcePattern . '[^>]*>'
. '/ui';
}
}

0 comments on commit b8e7074

Please sign in to comment.