This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 149fb70  Can also be ?action
149fb70 is described below

commit 149fb70f1ee78efce0d429d833c78842f7a53988
Author: Sebb <[email protected]>
AuthorDate: Thu Sep 30 14:10:15 2021 +0100

    Can also be ?action
---
 tools/download_check.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index bab9c2b..9e0139f 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -41,7 +41,7 @@ $versions = Hash.new {|h1, k1| h1[k1] = Hash.new {|h2, k2| 
h2[k2] = Array.new} }
 # match an artifact
 # TODO detect artifacts by URL as well if possible
 # $1 = base, $2 = extension
-ARTIFACT_RE = 
%r{/([^/]+\.(pom|tar|tar\.xz|tar\.gz|deb|nbm|dmg|sh|zip|tgz|tar\.bz2|jar|whl|war|msi|exe|rar|rpm|nar|xml))(&action=download)?$}
+ARTIFACT_RE = 
%r{/([^/]+\.(pom|tar|tar\.xz|tar\.gz|deb|nbm|dmg|sh|zip|tgz|tar\.bz2|jar|whl|war|msi|exe|rar|rpm|nar|xml))([&?]action=download)?$}
 
 def init
   # build a list of validation errors

Reply via email to