From 11e9faef7cff56cd2aaa933a54ffa1dbcdc0c8a7 Mon Sep 17 00:00:00 2001
From: FooIbar <118464521+FooIbar@users.noreply.github.com>
Date: Mon, 26 Feb 2024 20:47:57 +0800
Subject: [PATCH] Fix skip H@H key parsing
It may contain alphabets.
---
.../com/hippo/ehviewer/client/parser/GalleryPageParser.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/main/kotlin/com/hippo/ehviewer/client/parser/GalleryPageParser.kt b/app/src/main/kotlin/com/hippo/ehviewer/client/parser/GalleryPageParser.kt
index ae5619a93..e54373b64 100644
--- a/app/src/main/kotlin/com/hippo/ehviewer/client/parser/GalleryPageParser.kt
+++ b/app/src/main/kotlin/com/hippo/ehviewer/client/parser/GalleryPageParser.kt
@@ -20,7 +20,7 @@ import com.hippo.ehviewer.util.unescapeXml
object GalleryPageParser {
private val PATTERN_IMAGE_URL = Regex("
]*src=\"([^\"]+)\" style")
- private val PATTERN_SKIP_HATH_KEY = Regex("onclick=\"return nl\\('([\\d-]+)'\\)")
+ private val PATTERN_SKIP_HATH_KEY = Regex("onclick=\"return nl\\('([^)]+)'\\)")
private val PATTERN_ORIGIN_IMAGE_URL = Regex("")
// TODO Not sure about the size of show keys