Skip to content

Commit b2ba072

Browse files
jodokkohsuke
authored andcommitted
regex didn't match. no . in [] required
1 parent 808374d commit b2ba072

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/cloudbees/jenkins/GitHubPushTrigger.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ public static boolean allowsHookUrlOverride() {
264264
private static final Logger LOGGER = Logger.getLogger(GitHubPushTrigger.class.getName());
265265

266266
private static final Pattern[] URL_PATTERNS = {
267-
Pattern.compile("[email protected]:([^/.]+)/([^/.]+).git"),
268-
Pattern.compile("https://[^/.][email protected]/([^/.]+)/([^/.]+).git"),
269-
Pattern.compile("git://github.com/([^/.]+)/([^/.]+).git"),
270-
Pattern.compile("ssh://[email protected]/([^/.]+)/([^/.]+).git")
267+
Pattern.compile("[email protected]:([^/]+)/([^/]+).git"),
268+
Pattern.compile("https://[^/][email protected]/([^/]+)/([^/]+).git"),
269+
Pattern.compile("git://github.com/([^/]+)/([^/]+).git"),
270+
Pattern.compile("ssh://[email protected]/([^/]+)/([^/]+).git")
271271
};
272272
}

0 commit comments

Comments
 (0)