mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:02:46 +08:00
a bit better email name inference
This commit is contained in:
parent
f71ae355ae
commit
0337964759
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user