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: Oops, needs to be an RE now
Date Mon, 23 Mar 2020 10:01:58 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 837e526  Oops, needs to be an RE now
837e526 is described below

commit 837e5269b494a337b6dc86139aea7c465430f1b2
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Mar 23 10:01:50 2020 +0000

    Oops, needs to be an RE now
---
 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 30eb76b..2ee2c71 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -262,7 +262,7 @@ ALIASES = {
 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(' ?checksum','').strip
+    tmp = txt.downcase.strip.sub(%r{^\[(.+)\]$},'\1').sub('-','').sub(/ ?checksum/,'').strip
     ALIASES[tmp] || tmp
 end
 


Mime
View raw message