Fix matcher
This commit is contained in:
parent
7ab37e5e10
commit
404840f3b9
@ -2,5 +2,5 @@ package pixiv
|
||||
|
||||
const (
|
||||
// should have subexpressions matching only for IDs
|
||||
typicalFilenamesRegex = "(?:(?:illust_)(?P<illust_id_a>[0-9]*)(?:_[0-9]{8}_[0-9]{6}\\.(?:jpg|png|ugoira)))|(?:(?P<illust_id_b>[0-9]*)(?:_p[0-9]*\\.(?:jpg|png|ugoira)))"
|
||||
typicalFilenamesRegex = "^(?:(?:illust_)(?P<illust_id_a>[0-9]*)(?:_[0-9]{8}_[0-9]{6}\\.(?:jpg|png|ugoira)))$|^(?:(?P<illust_id_b>[0-9]*)(?:_p[0-9]*\\.(?:jpg|png|ugoira)))$"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user