From a78a782f0491c2c43a83272a4d0f13fd3de49186 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Tue, 5 Sep 2017 08:58:04 +0200 Subject: [PATCH] Fix detection of span and div elements without attributes. - Fix: Better detection of and
elements that do not have attributes. --- includes/Splitter.php | 4 ++-- tests/phpunit/LinkerTest.php | 5 +++++ tests/phpunit/SplitterTest.php | 12 ++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/includes/Splitter.php b/includes/Splitter.php index 349f1b8..8b03cc8 100644 --- a/includes/Splitter.php +++ b/includes/Splitter.php @@ -135,8 +135,8 @@ class Splitter { '
.*?<\/pre>|.*?<\/html>|' .      // pre/html
 			'