From 4f8919e8d58153d007e1847cd9103a6f7015b362 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 6 Jun 2017 13:10:16 -0400 Subject: [PATCH] fixed sanitizeURL in IG ripper (#569) --- .../com/rarchives/ripme/ripper/rippers/InstagramRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java index 938f131a..c2b50229 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/InstagramRipper.java @@ -49,7 +49,7 @@ public class InstagramRipper extends AbstractJSONRipper { @Override public URL sanitizeURL(URL url) throws MalformedURLException { - Pattern p = Pattern.compile("^.*instagram\\.com/([a-zA-Z0-9\\-_.]{3,}).*$"); + Pattern p = Pattern.compile("^.*instagram\\.com/([a-zA-Z0-9\\-_.]+).*$"); Matcher m = p.matcher(url.toExternalForm()); if (m.matches()) { return new URL("http://instagram.com/" + m.group(1));