Mercurial > pidgin-twitter
changeset 225:1ef5aa4883a1
adapted to the change of user name definition in wassr. now '-' can be included.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 09 Sep 2008 18:53:36 +0900 |
parents | 1fcd0e589b9e |
children | 8da85ae0aa2c |
files | pidgin-twitter.h |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 .+?>([A-Za-z0-9_]+)</a>:" +#define P_USER "^\\(.+?\\)\\s*([-A-Za-z0-9_]+):" +#define P_USER_FIRST_LINE "^\\(.+?\\)\\s*.+:\\s*([-A-Za-z0-9_]+):" +#define P_USER_FORMATTED "^.*?<a .+?>([-A-Za-z0-9_]+)</a>:" #define P_CHANNEL "^(.*?<a .+?>[A-Za-z0-9_]+</a>: \\r?\\n?#)([A-Za-z0-9_]+) " #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>"