Fixed bug for FDroid repos with uppercase in AppID

This commit is contained in:
Imran Remtulla
2022-12-16 19:48:48 -05:00
parent d435481f0b
commit 1985dcec3a
3 changed files with 5 additions and 5 deletions

View File

@@ -109,11 +109,11 @@ class App {
// Ensure the input is starts with HTTPS and has no WWW
preStandardizeUrl(String url) {
url = url.toLowerCase();
if (url.indexOf('http://') != 0 && url.indexOf('https://') != 0) {
if (url.toLowerCase().indexOf('http://') != 0 &&
url.toLowerCase().indexOf('https://') != 0) {
url = 'https://$url';
}
if (url.indexOf('https://www.') == 0) {
if (url.toLowerCase().indexOf('https://www.') == 0) {
url = 'https://${url.substring(12)}';
}
url = url