diff --git a/install.sh b/install.sh index 0066c2f..447f8b0 100644 --- a/install.sh +++ b/install.sh @@ -308,7 +308,7 @@ except ValueError: raise SystemExit(1) if (parsed.scheme != 'https' or parsed.netloc.lower() != 'git.keeper.work' or parsed.username is not None or parsed.password is not None or port is not None or parsed.query or parsed.fragment or '%' in (parsed.path or '') or - re.fullmatch(r'/api/packages/[^/]+/generic/[^/]+/[^/]+/[^/]+', parsed.path or '') is None): + re.fullmatch(r'/api/packages/[^/]+/generic/[^/]+/[A-Za-z0-9][A-Za-z0-9.-]*-[0-9a-fA-F]{12}(?:-[a-z0-9][a-z0-9-]{5,80})?/[^/]+', parsed.path or '') is None): raise SystemExit(1) print(e['version'], e['asset_url'], e['sha256'].lower(), sep='\t') PY