You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2018/05/09 19:13:48 UTC

[whimsy] branch master updated: Fix WHIMSY-185, allow more text strings for sponsorship links to capture

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

curcuru 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 f4ca603  Fix WHIMSY-185, allow more text strings for sponsorship links to capture
f4ca603 is described below

commit f4ca6037e0b6a15315c282f34d5f9f045ee9c729
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Wed May 9 15:13:40 2018 -0400

    Fix WHIMSY-185, allow more text strings for sponsorship links to capture
---
 tools/site-scan.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 7020228..8e75b35 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -109,7 +109,7 @@ def parse(id, site, name)
       end
     end
 
-    if ['sponsorship', 'donate', 'sponsor apache','sponsoring apache'].include? a_text
+    if a_text =~ %r{sponsorship|donate|sponsor\sapache|sponsoring\sapache|sponsor}
       begin
         data[:sponsorship] = uri + a_href
       rescue

-- 
To stop receiving notification emails like this one, please contact
curcuru@apache.org.