From 92ebbd91389d44f0282eddd38b12057a3b202bea Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 22 Feb 2025 19:44:28 -0500 Subject: [PATCH] Fix GitLab bug that broke all repos with hyphens in their names (#2125) --- lib/app_sources/gitlab.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {