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 6923b34 Tweak for Doris
6923b34 is described below
commit 6923b344f2debe5f1a4b901d3bc920739ff79e53
Author: Sebb <[email protected]>
AuthorDate: Sat Mar 19 23:01:51 2022 +0000
Tweak for Doris
---
tools/download_check.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index 4db2627..8faa382 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -340,7 +340,10 @@ end
def text2ext(txt)
# need to strip twice to handle ' [ asc ] '
# TODO: perhaps just remove all white-space?
- tmp = txt.downcase.strip.sub(%r{^\.}, '').sub(%r{^\[(.+)\]$}, '\1').sub('-',
'').sub(/ ?(digest|checksum)/, '').sub(/ \(tar\.gz\)| \(zip\)| /, '').strip
+ tmp = txt.downcase.strip.sub(%r{^\.}, '').sub(%r{^\[(.+)\]$}, '\1').sub('-',
'').
+ sub(/ ?(digest|checksum)/, '').sub(/ \(tar\.gz\)| \(zip\)| /, '').
+ sub('(opens new window)', ''). # doris
+ strip
return 'sha256' if tmp =~ %r{\A[A-Fa-f0-9]{64}\z}
return 'sha512' if tmp =~ %r{\A[A-Fa-f0-9]{128}\z}
ALIASES[tmp] || tmp