Remove condition

This commit is contained in:
Max Kostikov 2019-08-08 18:37:05 +02:00
parent 832adf92a6
commit 4382e53acb

View File

@ -206,8 +206,8 @@ function zidify_text($s) {
function red_zrl_callback($matches) {
// Catch and exclude trailing punctuation
if (preg_match("/[.,;:!?)]*$/i", $matches[2], $pts))
$matches[2] = substr($matches[2], 0, strlen($matches[2])-strlen($pts[0]));
preg_match("/[.,;:!?)]*$/i", $matches[2], $pts);
$matches[2] = substr($matches[2], 0, strlen($matches[2])-strlen($pts[0]));
$zrl = is_matrix_url($matches[2]);