From a1d8cfcf60bf23136512afad95edc3faede7108c Mon Sep 17 00:00:00 2001 From: Glenn Matthys Date: Fri, 8 Jan 2016 12:48:21 +0100 Subject: Introduce new constant REGEX_TICKET_MENTION --- src/main/java/com/gitblit/Constants.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java index 6232552e..acfc2042 100644 --- a/src/main/java/com/gitblit/Constants.java +++ b/src/main/java/com/gitblit/Constants.java @@ -62,6 +62,12 @@ public class Constants { public static final String GIT_PATH = "/git/"; public static final String REGEX_SHA256 = "[a-fA-F0-9]{64}"; + + /** + * 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 ZIP_PATH = "/zip/"; -- cgit v1.2.3