From 0337964759370ae5a517f7aa5767cf08c7779d9b Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Tue, 26 Jan 2016 16:39:02 -0800 Subject: [PATCH] a bit better email name inference --- lib/user_name_suggester.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/user_name_suggester.rb b/lib/user_name_suggester.rb index 934035ed6c8..57602d990aa 100644 --- a/lib/user_name_suggester.rb +++ b/lib/user_name_suggester.rb @@ -11,7 +11,7 @@ module UserNameSuggester # When 'walter@white.com' take 'walter' name = Regexp.last_match[1] # When 'me@eviltrout.com' take 'eviltrout' - name = Regexp.last_match[2] if ['i', 'me'].include?(name) + name = Regexp.last_match[2] if ['i', 'me', 'info', 'support', 'admin', 'webmaster', 'hello', 'mail', 'office', 'contact', 'team'].include?(name) end name end