Fix regex.

This commit is contained in:
Sorrow446 2020-02-15 21:34:01 +00:00 committed by GitHub
parent 0d6eec8dff
commit bcf29adc49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
mur.py
View File

@ -89,7 +89,7 @@ def dir_setup(tmp_dir, dl_dir):
def check_url(url):
regexes=[
r'http[s]://(read).marvel.com/#/book/([0-9]{5}$)',
r'http[s]://(www).marvel.com/comics/issue/([0-9]{5})/.+'
r'http[s]://(www).marvel.com/comics/issue/([0-9]+)/.+'
]
for regex in regexes:
match = re.match(regex, url)