From 7c6a94732646ec5ec09b3848572ec692141c50b5 Mon Sep 17 00:00:00 2001 From: htmlcsjs <46023024+htmlcsjs@users.noreply.github.com> Date: Sun, 14 May 2023 17:14:34 +0100 Subject: [PATCH] TIL: gh project names can have . in them --- .../java/xyz/htmlcsjs/coffeeFloppa/helpers/CommandUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/htmlcsjs/coffeeFloppa/helpers/CommandUtil.java b/src/main/java/xyz/htmlcsjs/coffeeFloppa/helpers/CommandUtil.java index f640ee5..8fef269 100644 --- a/src/main/java/xyz/htmlcsjs/coffeeFloppa/helpers/CommandUtil.java +++ b/src/main/java/xyz/htmlcsjs/coffeeFloppa/helpers/CommandUtil.java @@ -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 userRoleIDs;