mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 05:10:15 +02:00
Add www subdomain support for various sources (#1222)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user