Fixed incorrect group used in Utils.parseRedditImagesBlock when matching i.redd.it media.

This commit is contained in:
Docile-Alligator
2026-07-19 19:21:23 -04:00
parent 488ebf588b
commit dd53f48bd8

View File

@ -175,7 +175,7 @@ public final class Utils {
markdownStringBuilder.replace(previewReddItAndIReddItImageMatcher.start(), previewReddItAndIReddItImageMatcher.end(), replacingText);
start = replacingText.length() + previewReddItAndIReddItImageMatcher.start();
}
} else if (previewReddItAndIReddItImageMatcher.group(2) != null) {
} else if (previewReddItAndIReddItImageMatcher.group(5) != null) {
String id = previewReddItAndIReddItImageMatcher.group(8);
String caption = previewReddItAndIReddItImageMatcher.group(6);