diff --git a/lib/app_sources/fdroid.dart b/lib/app_sources/fdroid.dart index 22d3791..25c7175 100644 --- a/lib/app_sources/fdroid.dart +++ b/lib/app_sources/fdroid.dart @@ -45,7 +45,7 @@ class FDroid extends AppSource { RegExpMatch? match = standardUrlRegExB.firstMatch(url); if (match != null) { url = - 'https://${Uri.parse(match.group(0)!).host}/packages/${Uri.parse(url).pathSegments.last}'; + 'https://${Uri.parse(match.group(0)!).host}/packages/${Uri.parse(url).pathSegments.where((s) => s.trim().isNotEmpty).last}'; } RegExp standardUrlRegExA = RegExp( '^https?://(www\\.)?${getSourceRegex(hosts)}/+packages/+[^/]+',