bugfix: invalid version codes for some apkpure links

This commit is contained in:
bernikr
2025-05-17 15:49:28 +02:00
parent c702dbcefe
commit b41b9d3109

View File

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