Mercurial > pidgin-twitter
changeset 328:0fc8ab2cc9c2
tentative support for non-ascii hash tag in twitter
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 11 Oct 2009 23:50:26 +0900 |
parents | 4fd7630ff3e2 |
children | 300241bd1879 |
files | pidgin-twitter.h |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin-twitter.h Sun Sep 20 12:18:48 2009 +0900 +++ b/pidgin-twitter.h Sun Oct 11 23:50:26 2009 +0900 @@ -183,7 +183,8 @@ #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" #define P_USER "^.*?(?:<a .+?>)?([-A-Za-z0-9_]+)(?:</a>)?:" #define P_CHANNEL "^(.*?(?:<a .+?>)?[-A-Za-z0-9_]+(?:</a>)?: \\r?\\n?#)([A-Za-z0-9_]+) " -#define P_TAG_TWITTER "(^|\\s+)#([-A-Za-z0-9_]+)" +//#define P_TAG_TWITTER "(^|\\s+)#([-A-Za-z0-9_]+)" +#define P_TAG_TWITTER "(^|\\s+)#(.+_?)" #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)" #define P_GROUP_IDENTICA "!([-A-Za-z0-9_]+)" #define P_IMAGE_TWITTER "<profile_image_url>(https?://.+?)</profile_image_url>"