summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-11-30 18:26:40 -0500
committerFrederic Guillot <fred@kanboard.net>2016-11-30 18:26:40 -0500
commit700e226ba8508641fc559d1d2ddd1fd00a1eb79c (patch)
treeec8bfbf02442f66f67ca29e70586833de4921bb8 /app/Core
parent8588a8bda9d76eb1f98c8dca80d72ed9e016c7dc (diff)
Fix link generation when user mention is followed by a punctuation mark
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Markdown.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Core/Markdown.php b/app/Core/Markdown.php
index b5abe5ed..b83a3ced 100644
--- a/app/Core/Markdown.php
+++ b/app/Core/Markdown.php
@@ -86,7 +86,7 @@ class Markdown extends Parsedown
*/
protected function inlineUserLink(array $Excerpt)
{
- if (! $this->isPublicLink && preg_match('/^@([^\s]+)/', $Excerpt['text'], $matches)) {
+ if (! $this->isPublicLink && preg_match('/^@([^\s,!.:?]+)/', $Excerpt['text'], $matches)) {
$user_id = $this->container['userModel']->getIdByUsername($matches[1]);
if (! empty($user_id)) {