fix (delegate): Fix E-Hentai Jump/Seek match for detailed date (#919)

* Fix E-Hentai Jump/Seek match for detailed date

* end of line regex & note

---------

Co-authored-by: Cuong-Tran <cuongtran.tm@gmail.com>
This commit is contained in:
多能豆 2025-05-20 16:24:08 +08:00 committed by GitHub
parent 2024cdf168
commit 70fcc3dff0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -985,6 +985,8 @@ class EHentai(
AdvancedGroup(),
ReverseFilter(),
JumpSeekFilter(),
Filter.Header("Seek to specific date: YYYY, (YY)YY-MM, (YY)YY-MM-DD"),
Filter.Header("or Jump by number of days/weeks/months/years: 7d, 4w, 12m, 10y"),
)
}
@ -1391,7 +1393,7 @@ class EHentai(
private const val BLANK_PREVIEW_THUMB = "https://$THUMB_DOMAIN/g/$BLANK_THUMB"
private val MATCH_YEAR_REGEX = "^\\d{4}\$".toRegex()
private val MATCH_SEEK_REGEX = "^\\d{2,4}-\\d{1,2}".toRegex()
private val MATCH_SEEK_REGEX = "^\\d{2,4}-\\d{1,2}(-\\d{1,2})?\$".toRegex()
private val MATCH_JUMP_REGEX = "^\\d+(\$|d\$|w\$|m\$|y\$|-\$)".toRegex()
private const val EH_API_BASE = "https://api.e-hentai.org/api.php"