From 88b60fe362acacbd5adc3b58e4b535977e4d54bb Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Thu, 25 Aug 2022 14:35:46 -0400 Subject: [PATCH] Ignore 'www' in URL --- lib/services/source_service.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/services/source_service.dart b/lib/services/source_service.dart index b77b2ed..1f5cc16 100644 --- a/lib/services/source_service.dart +++ b/lib/services/source_service.dart @@ -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);