Skip to content

Commit

Permalink
TIL: gh project names can have . in them
Browse files Browse the repository at this point in the history
  • Loading branch information
htmlcsjs committed May 14, 2023
1 parent ad41256 commit 7c6a947
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CommandUtil {
// Pattern for recognizing a URL, based off RFC 3986, "taken" from https://stackoverflow.com/questions/5713558/
public static final Pattern urlPattern = Pattern.compile("(?:^|[\\W])((ht|f)tp(s?):\\/\\/|www\\.)(([\\w\\-]+\\.){1,}?([\\w\\-.~]+\\/?)*[\\p{Alnum}.,%_=?&#\\-+()\\[\\]\\*$~@!:/{};']*)",
Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL);
public static final Pattern ghIssuePattern = Pattern.compile(".*?([a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*/[a-zA-Z0-9_\\-]+)#(\\d+).*?", Pattern.MULTILINE);
public static final Pattern ghIssuePattern = Pattern.compile(".*?([a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*\\/[a-zA-Z0-9_\\-\\.]+)#(\\d+).*?", Pattern.MULTILINE);

public static boolean getAllowedToRun(Message message) {
Set<Snowflake> userRoleIDs;
Expand Down

0 comments on commit 7c6a947

Please sign in to comment.