From af5377d2eba2aeaf4d127a2ed89952667d51526b Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 23 Sep 2023 13:21:48 -0400 Subject: [PATCH] Allow 'm.' subdomain for APKPure --- lib/app_sources/apkpure.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/app_sources/apkpure.dart b/lib/app_sources/apkpure.dart index 15ca098..b40d39f 100644 --- a/lib/app_sources/apkpure.dart +++ b/lib/app_sources/apkpure.dart @@ -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());