diff --git a/lib/app_sources/gitlab.dart b/lib/app_sources/gitlab.dart index b42b6b8..4f5c8c3 100644 --- a/lib/app_sources/gitlab.dart +++ b/lib/app_sources/gitlab.dart @@ -58,7 +58,7 @@ class GitLab extends AppSource { url = urlSegments.sublist(0, cutOffIndex <= 0 ? null : cutOffIndex).join('/'); RegExp standardUrlRegEx = RegExp( - '^https?://(www\\.)?${getSourceRegex(hosts)}/[^/]+(/[^/-]+){1,20}', + '^https?://(www\\.)?${getSourceRegex(hosts)}/[^/]+(/[^((\b/\b)|(\b/-/\b))]+){1,20}', caseSensitive: false); RegExpMatch? match = standardUrlRegEx.firstMatch(url); if (match == null) { diff --git a/lib/app_sources/html.dart b/lib/app_sources/html.dart index 86d73e4..adf8068 100644 --- a/lib/app_sources/html.dart +++ b/lib/app_sources/html.dart @@ -313,7 +313,7 @@ class HTML extends AppSource { await sourceRequest(currentUrl, additionalSettings), additionalSettings['intermediateLink'][i]); if (intLinks.isEmpty) { - throw NoReleasesError(); + throw NoReleasesError(note: currentUrl); } else { currentUrl = intLinks.last.key; } @@ -329,7 +329,7 @@ class HTML extends AppSource { links = filterApks(links, additionalSettings['apkFilterRegEx'], additionalSettings['invertAPKFilter']); if (links.isEmpty) { - throw NoReleasesError(); + throw NoReleasesError(note: currentUrl); } } else { links = [MapEntry(currentUrl, currentUrl)]; diff --git a/pubspec.lock b/pubspec.lock index f276b4b..550d2e0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -80,10 +80,10 @@ packages: dependency: transitive description: name: archive - sha256: "6199c74e3db4fbfbd04f66d739e72fe11c8a8957d5f219f1f4482dbde6420b5a" + sha256: "528579c7e4579719f04b21eeeeddfd73a18b31dabc22766893b7d1be7f49b967" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.0.3" args: dependency: transitive description: @@ -580,10 +580,10 @@ packages: dependency: transitive description: name: image - sha256: "8346ad4b5173924b5ddddab782fc7d8a6300178c8b1dc427775405a01701c4a6" + sha256: "13d3349ace88f12f4a0d175eb5c12dcdd39d35c4c109a8a13dfeb6d0bd9e31c3" url: "https://pub.dev" source: hosted - version: "4.5.2" + version: "4.5.3" intl: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 3491a75..da21bea 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.44+2301 +version: 1.1.45+2302 environment: sdk: ^3.6.0