comparison pidgin-twitter.h @ 288:32ce4374dc8c

use pattern https? instead of http for icon URLs. twitter.com began to use https for some users.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 01 Apr 2009 01:26:00 +0900
parents 6d0bb66fedc7
children e07f28bed8a8
comparison
equal deleted inserted replaced
287:4a7f4ba199cc 288:32ce4374dc8c
173 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" 173 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)"
174 #define P_USER "^.*?(?:<a .+?>)?([-A-Za-z0-9_]+)(?:</a>)?:" 174 #define P_USER "^.*?(?:<a .+?>)?([-A-Za-z0-9_]+)(?:</a>)?:"
175 #define P_CHANNEL "^(.*?(?:<a .+?>)?[-A-Za-z0-9_]+(?:</a>)?: \\r?\\n?#)([A-Za-z0-9_]+) " 175 #define P_CHANNEL "^(.*?(?:<a .+?>)?[-A-Za-z0-9_]+(?:</a>)?: \\r?\\n?#)([A-Za-z0-9_]+) "
176 #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)" 176 #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)"
177 #define P_GROUP_IDENTICA "!([-A-Za-z0-9_]+)" 177 #define P_GROUP_IDENTICA "!([-A-Za-z0-9_]+)"
178 #define P_IMAGE_TWITTER "<img .*=\"profile-(?:image|img)\".*src=\"(http://.+?)\".*/>" 178 #define P_IMAGE_TWITTER "<img .*=\"profile-(?:image|img)\".*src=\"(https?://.+?)\".*/>"
179 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" 179 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>"
180 #define P_IMAGE_IDENTICA "<img src=\"(http://.+.identi.ca/.+)\" class=\"avatar profile photo\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-9_]+\"/>" 180 #define P_IMAGE_IDENTICA "<img src=\"(https?://.+.identi.ca/.+)\" class=\"avatar profile photo\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-9_]+\"/>"
181 #define P_IMAGE_JISKO "<img src=\"(http://jisko.net/users/.+/img/avatar/thumb_side\\..+)\" alt=\"Avatar\" />" 181 #define P_IMAGE_JISKO "<img src=\"(https?://jisko.net/users/.+/img/avatar/thumb_side\\..+)\" alt=\"Avatar\" />"
182 #define P_SIZE_128_WASSR "\\.128\\." 182 #define P_SIZE_128_WASSR "\\.128\\."
183 #define P_EXCESS_LF "([\\r|\\n]{2,})" 183 #define P_EXCESS_LF "([\\r|\\n]{2,})"
184 184
185 /* twitter API specific macros */ 185 /* twitter API specific macros */
186 #define TWITTER_BASE_URL "http://twitter.com" 186 #define TWITTER_BASE_URL "http://twitter.com"