We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc488c8 + 77b8612 commit b8e7074Copy full SHA for b8e7074
1 file changed
Classes/ResourceMatcher.php
@@ -49,9 +49,9 @@ public function match(string $input): array
49
*/
50
protected function getPattern(): string
51
{
52
- return '/<script[\/\s\w\-="]*src=' . $this->resourcePattern . '[^>]*>'
+ return '/<script[\/\s\w\-="]*[\s]+src=' . $this->resourcePattern . '[^>]*>'
53
. '|' .
54
- '<link[\/\s\w\-="]*href=' . $this->resourcePattern . '[^>]*>'
+ '<link[\/\s\w\-="]*[\s]+href=' . $this->resourcePattern . '[^>]*>'
55
. '/ui';
56
}
57
0 commit comments