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: Allow for @apache.org mailing lists
Date Thu, 26 Mar 2020 21:12:31 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 4df5a86  Allow for @apache.org mailing lists
4df5a86 is described below

commit 4df5a86b5583231086b4c2b586c4506cd6667127
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Mar 26 21:12:22 2020 +0000

    Allow for @apache.org mailing lists
---
 www/roster/views/nonpmc/main.js.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/roster/views/nonpmc/main.js.rb b/www/roster/views/nonpmc/main.js.rb
index 678cf97..682edf4 100644
--- a/www/roster/views/nonpmc/main.js.rb
+++ b/www/roster/views/nonpmc/main.js.rb
@@ -139,8 +139,12 @@ class NonPMC < Vue
       _h2.mail! 'Mail lists'
       _ul do
         for mail_name in @nonpmc.mail
-          parsed = mail_name.match(/^(.*?)-(.*)/)
-          list_name = "#{parsed[2]}@#{parsed[1]}.apache.org"
+          if mail_name.include? '-'
+            parsed = mail_name.match(/^(.*?)-(.*)/)
+            list_name = "#{parsed[2]}@#{parsed[1]}.apache.org"
+          else
+            list_name = "#{mail_name}@apache.org"
+          end
           _li do
             _a list_name, href: 'https://lists.apache.org/list.html?' +
               list_name


Mime
View raw message