Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpebosi <mail@pebosi.net>2016-08-11 16:39:15 +0300
committerGitHub <noreply@github.com>2016-08-11 16:39:15 +0300
commit77c213a61bc43dd93b5661929586b56e8765382c (patch)
treea84161aa5bc2bc87f785bc36bb4746ca1a4e57b0 /plugins/SEO
parentd5cc161cea60c6cf17687b87fbd653ea34914968 (diff)
New regex
Diffstat (limited to 'plugins/SEO')
-rw-r--r--plugins/SEO/Metric/Dmoz.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SEO/Metric/Dmoz.php b/plugins/SEO/Metric/Dmoz.php
index c7b8860a89..05e8e1a0e9 100644
--- a/plugins/SEO/Metric/Dmoz.php
+++ b/plugins/SEO/Metric/Dmoz.php
@@ -38,7 +38,7 @@ class Dmoz implements MetricsProvider
try {
$response = Http::sendHttpRequest(self::URL . urlencode($domain), $timeout = 10, @$_SERVER['HTTP_USER_AGENT']);
- preg_match('#DMOZ Sites[^\(]+\([0-9]-[0-9]+ of ([0-9]+)\)#', $response, $p);
+ preg_match('#[0-9] - [0-9]+ of ([0-9]+)#', $response, $p);
if (!empty($p[1])) {
$value = NumberFormatter::getInstance()->formatNumber((int)$p[1]);
} else {