mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
调整正则,使用最短匹配
This commit is contained in:
parent
dfdc537c83
commit
46c8aa3767
@ -206,7 +206,7 @@ def main():
|
|||||||
headers = {"Accept": "application/vnd.github+json"}
|
headers = {"Accept": "application/vnd.github+json"}
|
||||||
releases = []
|
releases = []
|
||||||
url_str = f"{args.base_url}{repo}/releases"
|
url_str = f"{args.base_url}{repo}/releases"
|
||||||
pattern = re.compile(r'<(.*)>;\s*rel="next"')
|
pattern = re.compile(r'.*<(.*?)>;\s*rel="next"')
|
||||||
while url_str:
|
while url_str:
|
||||||
r = github_get(url_str, headers=headers)
|
r = github_get(url_str, headers=headers)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user