mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-18 20:49:30 +02:00
Bugfixes for F-Droid repo search (#1681)
This commit is contained in:
@@ -354,7 +354,9 @@ preStandardizeUrl(String url) {
|
||||
url.toLowerCase().indexOf('https://') != 0) {
|
||||
url = 'https://$url';
|
||||
}
|
||||
var trailingSlash = Uri.tryParse(url)?.path.endsWith('/') ?? false;
|
||||
var uri = Uri.tryParse(url);
|
||||
var trailingSlash = (uri?.path.endsWith('/') ?? false) &&
|
||||
(uri?.queryParameters.isEmpty ?? false);
|
||||
url = url
|
||||
.split('/')
|
||||
.where((e) => e.isNotEmpty)
|
||||
|
Reference in New Issue
Block a user