diff options
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Readability.php b/src/Readability.php index 0b340a7..b443fd1 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1270,7 +1270,7 @@ class Readability foreach ($article->childNodes as $child) { $this->_cleanMatchedNodes($child, function ($node, $matchString) use ($shareElementThreshold) { - return (preg_match('/share/i', $matchString) && mb_strlen($node->textContent) < $shareElementThreshold); + return (preg_match(NodeUtility::$regexps['shareElements'], $matchString) && mb_strlen($node->textContent) < $shareElementThreshold); }); } |