You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/11/13 11:53:05 UTC
[whimsy] branch master updated: Handle apachecon.com as for
apache.org
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 b2a803b Handle apachecon.com as for apache.org
b2a803b is described below
commit b2a803b4b6349f8cb9696d6728cf26969ad68504
Author: Sebb <se...@apache.org>
AuthorDate: Mon Nov 13 11:53:04 2017 +0000
Handle apachecon.com as for apache.org
---
lib/whimsy/asf/mlist.rb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/whimsy/asf/mlist.rb b/lib/whimsy/asf/mlist.rb
index 6e0d360..bb4a7ce 100644
--- a/lib/whimsy/asf/mlist.rb
+++ b/lib/whimsy/asf/mlist.rb
@@ -139,14 +139,12 @@ module ASF
# domain may start in column 1 or following a '/'
# match [/home/apmail/lists/][accumulo.]apache.org/dev[/mod]
# list names can include '-': empire-db
- match = stanza.match(/(?:^|\/)([-\w]*\.?apache\.org)\/(.*?)#{suffix}(?:\n|\Z)/)
+ # or [/home/apmail/lists/]apachecon.com/announce[/mod]
+ match = stanza.match(%r{(?:^|/)([-\w]*\.?apache\.org|apachecon\.com)/(.*?)#{suffix}(?:\n|\Z)})
if match
dom = match[1]
list = match[2]
yield dom, list, stanza.scan(/^(.*@.*)/).flatten
- # or [/home/apmail/lists/]apachecon.com/dev[/mod]
- elsif stanza.match(/(?:^|\/)(apachecon\.com)\/(.*?)#{suffix}(?:\n|\Z)/)
- # TODO - not sure how to handle these yet
else
# don't allow mismatches as that means the RE is wrong
line=stanza[0..(stanza.index("\n")|| -1)]
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].