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: Try to reduce false positives for trademarks
Date Thu, 27 Apr 2017 15:54:42 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  bf22eb8   Try to reduce false positives for trademarks
bf22eb8 is described below

commit bf22eb89e832242bceca62d5904c0691fa002d2f
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Apr 27 16:54:40 2017 +0100

    Try to reduce false positives for trademarks
---
 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 f7c3468..eef7957 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -89,7 +89,7 @@ def parse(site, name)
     # scrub is needed as some sites have invalid UTF-8 bytes
     txt = node.text.scrub
     # trademarks may appear twice. TODO use array?
-    if txt =~ / trademarks / and not data[:trademarks]
+    if txt =~ / Apache feather logo / and not data[:trademarks]
       t, p = getText(txt, node)
       data[:trademarks] = t
       data[:tradeparent] = p if p

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message