Allow empty last name

This commit is contained in:
rnhmjoj 2015-06-23 03:18:23 +02:00
parent 9646585878
commit a564d842c2

View File

@ -33,7 +33,7 @@ module.exports = (robot) ->
user_info = (command, callback) ->
run_command command, (data) ->
match = (data.join '\n').match ///
User\ (\w+(\ ?\w+)+) # contact name
User\ (\w+(\ ?\w+)*) # contact name
(\ @(\w+))? # telegram username
(\ \(\#(\d+)\))? # telegram id
[\s\S]+phone:\ (\d+)? # phone number