Mercurial > pidgin-twitter
changeset 329:300241bd1879
revised tag pattern
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 12 Oct 2009 01:45:36 +0900 |
parents | 0fc8ab2cc9c2 |
children | cc41ee1f5d3a |
files | pidgin-twitter.h |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin-twitter.h Sun Oct 11 23:50:26 2009 +0900 +++ b/pidgin-twitter.h Mon Oct 12 01:45:36 2009 +0900 @@ -183,8 +183,7 @@ #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+)#(.+_?)" +#define P_TAG_TWITTER "(^|\\s+)#([-A-Za-z0-9_]+|\\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>"