diff options
author | Max Kostikov <max@kostikov.co> | 2019-08-08 18:37:05 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-08-08 18:37:05 +0200 |
commit | 4382e53acbd9e5fa071428a6f365a637561f6820 (patch) | |
tree | e0fd2e6e68243625bc1b1191bd6d4b00b9d8a4fe /include/zid.php | |
parent | 832adf92a65489dd9ee253453d1421e36a9af9d5 (diff) | |
download | volse-hubzilla-4382e53acbd9e5fa071428a6f365a637561f6820.tar.gz volse-hubzilla-4382e53acbd9e5fa071428a6f365a637561f6820.tar.bz2 volse-hubzilla-4382e53acbd9e5fa071428a6f365a637561f6820.zip |
Remove condition
Diffstat (limited to 'include/zid.php')
-rw-r--r-- | include/zid.php | 4 |
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]); |