From 00c1756b4289365ca5a6c89896027446bdb57c02 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 8 Oct 2024 23:53:26 -0400 Subject: sbolint: exempt github gists (and raw) URLs from check. --- sbolint | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sbolint') diff --git a/sbolint b/sbolint index fbb40f0..4da2afa 100755 --- a/sbolint +++ b/sbolint @@ -1239,7 +1239,9 @@ sub check_github_url { my $dir; # do not police releases/ or raw/ URLs, only archive/ - return unless $url =~ m{github\.com/[^/]*/[^/]*/archive/}; + # 20241008 bkw: also only police URLs that are in the main github.com + # domain, not e.g. raw.github.com or gists.github.com. + return unless $url =~ m{//github\.com/[^/]*/[^/]*/archive/}; # allow *and ignore* refs/tags $url =~ s,refs/tags/,,; -- cgit v1.2.3