package commands;

public class RegexConstants
{
    public static final String CHANNEL = "[\\w-_]+";

    private RegexConstants(){}

    public static final String SPACES = "\\s+";
    public static final String CHANGE_ID = "\\d+";
    public static final String PROJECT = "[^@][\\w|-]+";

    public static final String USER_ALIAS = "@\\S*";
    public static final String ANYTHING_ELSE = ".*";
    public static final String COMMENT = ANYTHING_ELSE;

}

package commands;

public class RegexConstants
{
    public static final String CHANNEL = "[\\w-_]+";

    private RegexConstants(){}

    public static final String SPACES = "\\s+";
    public static final String CHANGE_ID = "\\d+";
    public static final String PROJECT = "[^@]\\W*";

    public static final String USER_ALIAS = "@\\S*";
    public static final String ANYTHING_ELSE = ".*";
    public static final String COMMENT = ANYTHING_ELSE;

}

--- 
+++ 
@@ -8,7 +8,7 @@
 
     public static final String SPACES = "\\s+";
     public static final String CHANGE_ID = "\\d+";
-    public static final String PROJECT = "[^@]\\W*";
+    public static final String PROJECT = "[^@][\\w|-]+";
 
     public static final String USER_ALIAS = "@\\S*";
     public static final String ANYTHING_ELSE = ".*";
Fix parsing of project name

Change-Id: Ic038f10247cb60f5b4a681f015b5460c499245d0
