From 07670c98f8baab878b8c8b58d34292736606ae14 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Fri, 6 Jul 2018 01:32:28 -0400 Subject: [PATCH] Fixed Deviantart getUsernameFromURL --- .../com/rarchives/ripme/ripper/rippers/DeviantartRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java index be1cf3ec..10ef233a 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/DeviantartRipper.java @@ -122,7 +122,7 @@ public class DeviantartRipper extends AbstractJSONRipper { } private String getUsernameFromURL(String u) { - Pattern p = Pattern.compile("^https?://www\\.deviantart\\.com/([a-zA-Z0-9\\-]+)/gallery/\\S+"); + Pattern p = Pattern.compile("^https?://www\\.deviantart\\.com/([a-zA-Z0-9\\-]+)/gallery/?(\\S+)?"); Matcher m = p.matcher(url.toExternalForm()); if (m.matches()) { return m.group(1);