summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/Constants.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/Constants.java')
-rw-r--r--src/main/java/com/gitblit/Constants.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java
index acfc2042..c7112835 100644
--- a/src/main/java/com/gitblit/Constants.java
+++ b/src/main/java/com/gitblit/Constants.java
@@ -67,7 +67,7 @@ public class Constants {
* This regular expression is used when searching for "mentions" in tickets
* (when someone writes @thisOtherUser)
*/
- public static final String REGEX_TICKET_MENTION = "\\s@([^\\s]+)";
+ public static final String REGEX_TICKET_MENTION = "\\B@(?<user>[^\\s]+)\\b";
public static final String ZIP_PATH = "/zip/";