diff options
author | pebosi <mail@pebosi.net> | 2016-08-11 16:39:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-11 16:39:15 +0300 |
commit | 77c213a61bc43dd93b5661929586b56e8765382c (patch) | |
tree | a84161aa5bc2bc87f785bc36bb4746ca1a4e57b0 /plugins/SEO | |
parent | d5cc161cea60c6cf17687b87fbd653ea34914968 (diff) |
New regex
Diffstat (limited to 'plugins/SEO')
-rw-r--r-- | plugins/SEO/Metric/Dmoz.php | 2 |
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 { |