aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-08-08 18:37:05 +0200
committerMax Kostikov <max@kostikov.co>2019-08-08 18:37:05 +0200
commit4382e53acbd9e5fa071428a6f365a637561f6820 (patch)
treee0fd2e6e68243625bc1b1191bd6d4b00b9d8a4fe
parent832adf92a65489dd9ee253453d1421e36a9af9d5 (diff)
downloadvolse-hubzilla-4382e53acbd9e5fa071428a6f365a637561f6820.tar.gz
volse-hubzilla-4382e53acbd9e5fa071428a6f365a637561f6820.tar.bz2
volse-hubzilla-4382e53acbd9e5fa071428a6f365a637561f6820.zip
Remove condition
-rw-r--r--include/zid.php4
1 files changed, 2 insertions, 2 deletions
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]);