From e2af6dc9091b000d358e76474729a32d19136bf4 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Sat, 23 Dec 2023 10:33:37 -0500 Subject: Combine regex for preview.redd.it and i.redd.it in Utils.parseRedditImagesBlock. --- .../infinityforreddit/utils/Utils.java | 134 ++++++++++----------- 1 file changed, 67 insertions(+), 67 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java index ea8adeb2..aa462953 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java @@ -74,9 +74,10 @@ public final class Utils { Pattern.compile("((?<=[\\s])|^)[rRuU]/[\\w-]+/{0,1}"), Pattern.compile("\\^{2,}"), //Sometimes the reddit preview images and gifs have a caption and the markdown will become [caption](image_link) - Pattern.compile("(\\[(?:(?!((?