Allow empty last name
This commit is contained in:
parent
9646585878
commit
a564d842c2
@ -33,7 +33,7 @@ module.exports = (robot) ->
|
|||||||
user_info = (command, callback) ->
|
user_info = (command, callback) ->
|
||||||
run_command command, (data) ->
|
run_command command, (data) ->
|
||||||
match = (data.join '\n').match ///
|
match = (data.join '\n').match ///
|
||||||
User\ (\w+(\ ?\w+)+) # contact name
|
User\ (\w+(\ ?\w+)*) # contact name
|
||||||
(\ @(\w+))? # telegram username
|
(\ @(\w+))? # telegram username
|
||||||
(\ \(\#(\d+)\))? # telegram id
|
(\ \(\#(\d+)\))? # telegram id
|
||||||
[\s\S]+phone:\ (\d+)? # phone number
|
[\s\S]+phone:\ (\d+)? # phone number
|
||||||
|
Loading…
Reference in New Issue
Block a user