From 0dc648beb3b770dfb821d5db484a5a8cc66667dd Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 4 Aug 2018 12:45:35 -0400 Subject: [PATCH] Tweaked regex a bit more --- .../com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java index 7a907f34..90f274f1 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java @@ -33,7 +33,7 @@ public class JabArchivesRipper extends AbstractHTMLRipper { @Override public String getGID(URL url) throws MalformedURLException { - Pattern p = Pattern.compile("^https?://(:?www\\.)jabarchives.com/main/view/([a-zA-Z0-9_]+).*$"); + Pattern p = Pattern.compile("^https?://(?:www\\.)?jabarchives.com/main/view/([a-zA-Z0-9_]+).*$"); Matcher m = p.matcher(url.toExternalForm()); if (m.matches()) { // Return the text contained between () in the regex