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 f0f2a1d Drop leading '.'
f0f2a1d is described below
commit f0f2a1dd09e748be823a4088d92f6d44a7d15c0a
Author: Sebb <[email protected]>
AuthorDate: Wed Oct 14 10:07:39 2020 +0100
Drop leading '.'
---
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 d98373c..e64794e 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -293,7 +293,7 @@ end
def text2ext(txt)
# need to strip twice to handle ' [ asc ] '
# TODO: perhaps just remove all white-space?
- tmp = txt.downcase.strip.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\)| /,'').strip
ALIASES[tmp] || tmp
end