whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Trim spaces
Date Mon, 09 Mar 2020 15:45:32 GMT
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 04f8a6c  Trim spaces
04f8a6c is described below

commit 04f8a6cecea37193111a3a841514a0b54e42136e
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Mar 9 15:45:22 2020 +0000

    Trim spaces
---
 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 6886ef3..a0ee8c7 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -260,7 +260,7 @@ ALIASES = {
 # Convert text reference to extension
 # e.g. SHA256 => sha256; [SIG] => asc
 def text2ext(txt)
-    tmp = txt.downcase.sub(%r{^\[(.+)\]$},'\1').sub('-','').sub(' checksum','')
+    tmp = txt.downcase.sub(%r{^\[(.+)\]$},'\1').sub('-','').sub(' checksum','').strip
     ALIASES[tmp] || tmp
 end
 


Mime
View raw message