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 ee516372 Fix TsFile
ee516372 is described below
commit ee516372183fef23426428b96261b0574defd754
Author: Sebb <[email protected]>
AuthorDate: Thu Mar 21 11:03:45 2024 +0000
Fix TsFile
---
tools/site-scan.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index e3007c1b..7e928bf7 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -101,8 +101,9 @@ def parse(id, site, name)
# Normalize the text and href for our capture purposes
a_href = a['href'].to_s.strip
- a_text = a.text.downcase.strip
- $stderr.puts "#{a_text} #{a_href}" if $verbose
+ # HACK to fix TsFile; should have better way to filter out such text
+ a_text = a.text.downcase.sub('open in new window', '').strip
+ $stderr.puts "#{a_text.inspect} #{a_href}" if $verbose
# Check the href urls for some patterns
if a_href =~
SiteStandards::COMMON_CHECKS['foundation'][SiteStandards::CHECK_CAPTURE]