# HG changeset patch # User Yoshiki Yazawa # Date 1220954016 -32400 # Node ID 1ef5aa4883a113d067244a8c11b450c34d86fa0e # Parent 1fcd0e589b9eb07db6500112a6698c97a115dc85 adapted to the change of user name definition in wassr. now '-' can be included. diff -r 1fcd0e589b9e -r 1ef5aa4883a1 pidgin-twitter.h --- a/pidgin-twitter.h Sat Sep 06 23:47:17 2008 +0900 +++ b/pidgin-twitter.h Tue Sep 09 18:53:36 2008 +0900 @@ -147,13 +147,13 @@ #define EMPTY "" /* patterns */ -#define P_RECIPIENT "(^|\\s+|[.[:^print:]])@([A-Za-z0-9_]+)" -#define P_SENDER "^(\\r?\\n?)\\s*([A-Za-z0-9_]+)(?:\\s*\\(.+\\))?: " +#define P_RECIPIENT "(^|\\s+|[.[:^print:]])@([-A-Za-z0-9_]+)" +#define P_SENDER "^(\\r?\\n?)\\s*([-A-Za-z0-9_]+)(?:\\s*\\(.+\\))?: " #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" -#define P_USER "^\\(.+?\\)\\s*([A-Za-z0-9_]+):" -#define P_USER_FIRST_LINE "^\\(.+?\\)\\s*.+:\\s*([A-Za-z0-9_]+):" -#define P_USER_FORMATTED "^.*?([A-Za-z0-9_]+):" +#define P_USER "^\\(.+?\\)\\s*([-A-Za-z0-9_]+):" +#define P_USER_FIRST_LINE "^\\(.+?\\)\\s*.+:\\s*([-A-Za-z0-9_]+):" +#define P_USER_FORMATTED "^.*?([-A-Za-z0-9_]+):" #define P_CHANNEL "^(.*?[A-Za-z0-9_]+: \\r?\\n?#)([A-Za-z0-9_]+) " #define P_IMAGE_TWITTER "" #define P_IMAGE_WASSR "
"