From 1c6aa79570976cc6fa9bb18cc22c553e5da42f53 Mon Sep 17 00:00:00 2001 From: Steve Robbins Date: Fri, 19 May 2017 14:42:46 -0700 Subject: [PATCH] Fixes #144 --- src/MageScan/Check/Sitemap.php | 2 +- src/bootstrap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MageScan/Check/Sitemap.php b/src/MageScan/Check/Sitemap.php index 1d04ac7..67eacf6 100644 --- a/src/MageScan/Check/Sitemap.php +++ b/src/MageScan/Check/Sitemap.php @@ -40,7 +40,7 @@ public function getSitemapFromRobotsTxt(Response $response) { return $this->getRequest()->findMatchInResponse( $response->getBody()->getContents(), - '/^(?!#+)\s*Sitemap: (.*)$/mi' + '/^(?!#+)\s*Sitemap:\w+(.*)$/mi' ); } } diff --git a/src/bootstrap.php b/src/bootstrap.php index 0462623..7451715 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -25,7 +25,7 @@ use MageScan\Command\SelfUpdateCommand; use Symfony\Component\Console\Application; -$app = new Application('Mage Scan', '1.12.5'); +$app = new Application('Mage Scan', '1.12.6'); $app->add(new AllCommand); $app->add(new VersionCommand);