Bugfixes: Don't make URLs lowercase, never auto-select Jenkins

This commit is contained in:
Imran Remtulla
2024-01-11 21:28:15 -05:00
parent 05372924a0
commit ec6683a198
16 changed files with 73 additions and 53 deletions

View File

@ -16,9 +16,10 @@ class Codeberg extends AppSource {
@override
String sourceSpecificStandardizeURL(String url) {
RegExp standardUrlRegEx =
RegExp('^https?://(www\\.)?${getSourceRegex(hosts)}/[^/]+/[^/]+');
RegExpMatch? match = standardUrlRegEx.firstMatch(url.toLowerCase());
RegExp standardUrlRegEx = RegExp(
'^https?://(www\\.)?${getSourceRegex(hosts)}/[^/]+/[^/]+',
caseSensitive: false);
RegExpMatch? match = standardUrlRegEx.firstMatch(url);
if (match == null) {
throw InvalidURLError(name);
}