Fix favorite page load (#368)

修复收藏页面按发布时间排序时无法翻页问题
This commit is contained in:
小白-白 authored and GitHub committed 2022-11-04 11:40:30 +08:00
1 parent d772a737fc
commit 52681bd386
1 file changed
+1 -1
@@ -34,7 +34,7 @@ import java.util.List;
import java.util.regex.Pattern;
public class FavoritesParser {
private static final Pattern PATTERN_NEXT_PAGE = Pattern.compile("next=(\\d+-\\d+)");
private static final Pattern PATTERN_NEXT_PAGE = Pattern.compile("next=(\\d+(-\\d+)?)");
public static Result parse(String body) throws Exception {
if (body.contains("This page requires you to log on.</p>")) {