Allow 'm.' subdomain for APKPure

This commit is contained in:
Imran Remtulla
2023-09-23 13:21:48 -04:00
parent 6ac8ad543c
commit af5377d2eb

View File

@@ -21,6 +21,7 @@ parseDateTimeMMMddCommayyyy(String? dateString) {
class APKPure extends AppSource {
APKPure() {
host = 'apkpure.com';
allowSubDomains = true;
}
@override
@@ -28,7 +29,7 @@ class APKPure extends AppSource {
RegExp standardUrlRegExB = RegExp('^https?://m.$host/+[^/]+/+[^/]+');
RegExpMatch? match = standardUrlRegExB.firstMatch(url.toLowerCase());
if (match != null) {
url = 'https://$host/${Uri.parse(url).path}';
url = 'https://$host${Uri.parse(url).path}';
}
RegExp standardUrlRegExA = RegExp('^https?://$host/+[^/]+/+[^/]+');
match = standardUrlRegExA.firstMatch(url.toLowerCase());