Merge pull request #2296 from bernikr/apkpure-fix-no-variants

bugfix: invalid version codes for some apkpure links
This commit is contained in:
Imran
2025-05-17 20:39:52 -04:00
committed by GitHub

View File

@ -131,7 +131,7 @@ class APKPure extends AppSource {
var link =
html.querySelector("a.download-start-btn")?.attributes['href'];
RegExp downloadLinkRegEx = RegExp(
r'^https:\/\/d\.[^/]+\/b\/([^/]+)\/[^/?]+\?versionCode=([0-9]+).$',
r'^https:\/\/d\.[^/]+\/b\/([^/]+)\/[^/?]+\?versionCode=([0-9]+)$',
caseSensitive: false);
RegExpMatch? match = downloadLinkRegEx.firstMatch(link ?? '');
if (match == null) {