pixiv-scrapper/pixiv/filenames.go

7 lines
252 B
Go
Raw Permalink Normal View History

2021-02-26 01:05:07 +03:00
package pixiv
const (
// should have subexpressions matching only for IDs
2021-02-26 11:38:27 +03:00
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)))$"
2021-02-26 01:05:07 +03:00
)