From: "Alex Legler" <a3li@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/ag-web:master commit in: lib/
Date: Mon, 23 Feb 2015 23:55:43 +0000 (UTC) [thread overview]
Message-ID: <1424735037.52d5af6a47a6532575a3d3eef04bc4f7f3dbc7e4.a3li@gentoo> (raw)
commit: 52d5af6a47a6532575a3d3eef04bc4f7f3dbc7e4
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Mon Feb 23 23:43:57 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 23:43:57 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=52d5af6a
Better email escaping regex
---
lib/helpers.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/helpers.rb b/lib/helpers.rb
index 5b4d2e3..6844e6d 100644
--- a/lib/helpers.rb
+++ b/lib/helpers.rb
@@ -45,7 +45,7 @@ helpers do
# This method strips domains from header fields.
def strip_email_headers(ary)
[ary].flatten.map do |email|
- email.gsub(/@(.*?)(>|$)/) do |s|
+ email.gsub(/@(\S*?)(>|$)/) do |s|
if $1 == 'gentoo.org'
"@g.o#{$2}"
elsif $1 == 'lists.gentoo.org'
next reply other threads:[~2015-02-23 23:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 23:55 Alex Legler [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-02-25 14:19 [gentoo-commits] proj/ag-web:master commit in: lib/ Alex Legler
2015-02-25 10:44 Alex Legler
2015-02-23 20:58 Alex Legler
2015-02-22 4:23 Robin H. Johnson
2015-02-21 23:47 Robin H. Johnson
2015-02-21 23:47 Robin H. Johnson
2015-02-21 14:40 Alex Legler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424735037.52d5af6a47a6532575a3d3eef04bc4f7f3dbc7e4.a3li@gentoo \
--to=a3li@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox