Skip to content

Commit bdb19d8

Browse files
committed
Korrektur beim Sprung zum ersten Treffer im HTML DIFF
1 parent 504274a commit bdb19d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/url.diff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</table>';
4949
} else {
5050
// HTML Div gefunden
51-
$content = preg_replace('/<del\b[^>]*>(.*?)<\/del>/is', '<del id="diff_detect_first_hit">$1</del>', $content, 1);
51+
$content = preg_replace('/data-type="([\+\-])"/is', 'data-type="$1" id="diff_detect_first_hit"', $content, 1);
5252
$first_detect = ' <a href="#diff_detect_first_hit" class="">'.$this->i18n('hitme').'</a>';
5353
}
5454
}

0 commit comments

Comments
 (0)