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 e9fcec99 Tweak
e9fcec99 is described below
commit e9fcec995be8e2866a95ecc303927e856dc020f9
Author: Sebb <[email protected]>
AuthorDate: Thu Mar 21 18:00:05 2024 +0000
Tweak
---
tools/site-scan.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 6475367c..4e267580 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -52,12 +52,12 @@ def save_events(data, value)
end
end
-# Extract link text, skipping invisible stuff (assumed to be a class ending
with '-sr-only')
+# Extract link text, skipping invisible stuff (assumed to be a class ending
with 'sr-only')
def get_link_text(anode)
bits = []
anode.traverse do |node|
if node.name == 'text'
- bits << node.text unless node.parent.name == 'span' and
node.parent.attribute('class')&.value&.end_with? '-sr-only'
+ bits << node.text unless node.parent.name == 'span' and
node.parent.attribute('class')&.value&.end_with? 'sr-only'
end
end
bits.join(' ')