Add www subdomain support for various sources (#1222)

This commit is contained in:
Imran Remtulla
2023-12-31 15:59:44 -05:00
parent 70fcfc1753
commit 436a6310d7
11 changed files with 16 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ class APKPure extends AppSource {
url = 'https://$host${Uri.parse(url).path}';
}
RegExp standardUrlRegExA =
RegExp('^https?://$host/+[^/]+/+[^/]+(/+[^/]+)?');
RegExp('^https?://(www\\.)?$host/+[^/]+/+[^/]+(/+[^/]+)?');
match = standardUrlRegExA.firstMatch(url.toLowerCase());
if (match == null) {
throw InvalidURLError(name);