Skip to content

Commit 75d1094

Browse files
committed
Match meta tag for single quotes, often used by Wordpress sites
1 parent 61a5143 commit 75d1094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RobotsMeta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function findRobotsMetaTagProperties(string $html): array
6868

6969
protected function findRobotsMetaTagLine(string $html): ?string
7070
{
71-
if (preg_match('/\<meta name="robots".*?\>/mis', $html, $matches)) {
71+
if (preg_match('/\<meta name=("|\')robots("|\').*?\>/mis', $html, $matches)) {
7272
return $matches[0];
7373
}
7474

0 commit comments

Comments
 (0)