From 4382e53acbd9e5fa071428a6f365a637561f6820 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Thu, 8 Aug 2019 18:37:05 +0200 Subject: Remove condition --- include/zid.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/zid.php') diff --git a/include/zid.php b/include/zid.php index aaa509a09..3b3dd8554 100644 --- a/include/zid.php +++ b/include/zid.php @@ -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]); -- cgit v1.2.3