# HG changeset patch # User Yoshiki Yazawa # Date 1255279536 -32400 # Node ID 300241bd18793c3b8c99993b78428a01b476bd8d # Parent 0fc8ab2cc9c2e81ddf058b536124f460fc28f367 revised tag pattern diff -r 0fc8ab2cc9c2 -r 300241bd1879 pidgin-twitter.h --- 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-Za-z0-9_]+)(?:)?:" #define P_CHANNEL "^(.*?(?:)?[-A-Za-z0-9_]+(?:)?: \\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 "(https?://.+?)"