Revision | 452feb0116b892739c03d4e9c2e8759306da19d1 (tree) |
---|---|
Zeit | 2011-02-13 16:16:37 |
Autor | azyobuzin <azyobuzin@user...> |
Commiter | azyobuzin |
�に対応
@@ -56,7 +56,7 @@ namespace Azyobuzi.Twirunrun | ||
56 | 56 | match.ToString().HtmlAttributeEncode(), match.ToString().HtmlEncode())) |
57 | 57 | .RegexReplace(@"[@@][a-zA-Z0-9_]+"/*\wだとうまく認識しない*/, (match) => |
58 | 58 | string.Format(@"{0}<a href=""https://twitter.com/{1}"">{1}</a>", match.ToString()[0], match.ToString().Substring(1))) |
59 | - .RegexReplace(@"(^|\W)([##][a-zA-Z0-9_\-]+)", (match) => | |
59 | + .RegexReplace(@"(^|[^\w&])([##][a-zA-Z0-9_\-]+)", (match) => | |
60 | 60 | string.Format(@"{0}<a href=""https://twitter.com/search?q={1}"">{2}</a>", match.Groups[1].ToString(), Uri.EscapeDataString(match.Groups[2].ToString()).HtmlAttributeEncode(), match.Groups[2].ToString())); |
61 | 61 | } |
62 | 62 |