You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/07/04 21:48:48 UTC
[whimsy] branch master updated: highlight any non-apache.org email
addresses in establish resolutions
This is an automated email from the ASF dual-hosted git repository.
rubys 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 544d67f highlight any non-apache.org email addresses in establish resolutions
544d67f is described below
commit 544d67f688022453eb8459a2a62c2155ba70fbc9
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Jul 4 17:48:34 2017 -0400
highlight any non-apache.org email addresses in establish resolutions
---
www/board/agenda/views/pages/report.js.rb | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/www/board/agenda/views/pages/report.js.rb b/www/board/agenda/views/pages/report.js.rb
index a0e8a42..89e5d48 100644
--- a/www/board/agenda/views/pages/report.js.rb
+++ b/www/board/agenda/views/pages/report.js.rb
@@ -204,6 +204,19 @@ class Report < React
end
end
+ # highlight any non-apache.org email addresses in establish resolutions
+ if @@item.title =~ /^Establish/
+ text.gsub! /(<|\()[-.\w]+@(([-\w]+\.)+\w+)(>|\))/ do |match|
+ if match =~ /@apache\.org/
+ match
+ else
+ '<span class="commented" title="non @apache.org email address">' +
+ match + '</span>'
+ end
+ end
+ end
+
+
# highlight mis-spelling of previous and proposed chair names
if @@item.title.start_with? 'Change' and text =~ /\(\w[-_.\w]+\)/
text.sub!(/heretofore\s+appointed\s+(\w(\s|.)*?)\s+\(/) do |text, name|
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].