Added cloudflare.f-droid.org support

This commit is contained in:
Imran Remtulla
2023-04-04 20:21:24 -04:00
parent d557746965
commit 782d055bc3
2 changed files with 9 additions and 6 deletions

View File

@@ -363,7 +363,7 @@ class SourceProvider {
url = preStandardizeUrl(url);
AppSource? source;
for (var s in sources.where((element) => element.host != null)) {
if (url.contains('://${s.host}')) {
if (RegExp('://(.+\\.)?${s.host}').hasMatch(url)) {
source = s;
break;
}