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

sebbASF 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 537f0d87 Allow for missing Apache prefix
537f0d87 is described below

commit 537f0d87eaebbf72d20e894daa47f9de1604f9dd
Author: Sebb <[email protected]>
AuthorDate: Tue Aug 18 12:23:54 2026 +0100

    Allow for missing Apache prefix
---
 www/brand/list.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/brand/list.cgi b/www/brand/list.cgi
index 1d18b139..6040f83a 100755
--- a/www/brand/list.cgi
+++ b/www/brand/list.cgi
@@ -188,7 +188,8 @@ _html do
         end
       end
       _h3 'The ASF holds the following unregistered trademarks:'
-      allproj = projects.group_by { |k, v| 
/Apache\s+(.)/.match(v['name'])[1].downcase }
+      # Allow for missing Apache prefix
+      allproj = projects.group_by { |k, v| 
/(?:Apache\s+)?(.)/.match(v['name']).captures.first.downcase }
       allproj.sort.each do |ltr, parr|
         parent = "#{UNREG_ID}#{ltr}"
         _div.panel_group id: parent, role: "tablist", aria_multiselectable: 
"true" do

Reply via email to