mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-11-02 06:13:28 +01:00
Add www subdomain support for various sources (#1222)
This commit is contained in:
@@ -11,7 +11,7 @@ class Mullvad extends AppSource {
|
||||
|
||||
@override
|
||||
String sourceSpecificStandardizeURL(String url) {
|
||||
RegExp standardUrlRegEx = RegExp('^https?://$host');
|
||||
RegExp standardUrlRegEx = RegExp('^https?://(www\\.)?$host');
|
||||
RegExpMatch? match = standardUrlRegEx.firstMatch(url.toLowerCase());
|
||||
if (match == null) {
|
||||
throw InvalidURLError(name);
|
||||
|
||||
Reference in New Issue
Block a user