Ignore 'www' in URL

This commit is contained in:
Imran Remtulla
2022-08-25 14:35:46 -04:00
parent 0362cdf8ac
commit 88b60fe362

View File

@@ -147,6 +147,9 @@ class SourceService {
url.toLowerCase().indexOf('https://') != 0) {
url = 'https://$url';
}
if (url.toLowerCase().indexOf('https://www.') == 0) {
url = 'https://${url.substring(12)}';
}
AppSource source = getSource(url);
String standardUrl = source.standardizeURL(url);
AppNames names = source.getAppNames(standardUrl);