From a564d842c2dbff9d5758cff52ed0bbab450f42d5 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 23 Jun 2015 03:18:23 +0200 Subject: [PATCH] Allow empty last name --- scripts/telegram.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/telegram.coffee b/scripts/telegram.coffee index ffc5b4f..9cf91d4 100644 --- a/scripts/telegram.coffee +++ b/scripts/telegram.coffee @@ -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