diff options
author | Glenn Matthys <glenn@webmind.be> | 2016-01-08 12:48:21 +0100 |
---|---|---|
committer | Florian Zschocke <florian.zschocke@devolo.de> | 2016-12-10 12:29:59 +0100 |
commit | a1d8cfcf60bf23136512afad95edc3faede7108c (patch) | |
tree | bc228b4a9c952666eef3fcc3b9e37fc57084226f | |
parent | d10fe0d8fd614f6ae6606179b0326bdc6a5f6af8 (diff) | |
download | gitblit-a1d8cfcf60bf23136512afad95edc3faede7108c.tar.gz gitblit-a1d8cfcf60bf23136512afad95edc3faede7108c.zip |
Introduce new constant REGEX_TICKET_MENTION
-rw-r--r-- | src/main/java/com/gitblit/Constants.java | 6 |
1 files changed, 6 insertions, 0 deletions
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/";
|