svnno****@sourc*****
svnno****@sourc*****
2011年 10月 4日 (火) 10:40:00 JST
Revision: 1615 http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1615 Author: kiri_feather Date: 2011-10-04 10:40:00 +0900 (Tue, 04 Oct 2011) Log Message: ----------- チルダ先行のニコ動ID変換でURLリンク壊してしまっていたので対処 Modified Paths: -------------- trunk/Tween/Twitter.vb -------------- next part -------------- Modified: trunk/Tween/Twitter.vb =================================================================== --- trunk/Tween/Twitter.vb 2011-10-03 14:04:00 UTC (rev 1614) +++ trunk/Tween/Twitter.vb 2011-10-04 01:40:00 UTC (rev 1615) @@ -3139,7 +3139,7 @@ RegexOptions.IgnoreCase) - retStr = Regex.Replace(retStr, "(^|[^a-zA-Z0-9_/&##@@>=.])(sm|nm)([0-9]{1,10})", "$1<a href=""http://www.nicovideo.jp/watch/$2$3"">$2$3</a>") + retStr = Regex.Replace(retStr, "(^|[^a-zA-Z0-9_/&##@@>=.~])(sm|nm)([0-9]{1,10})", "$1<a href=""http://www.nicovideo.jp/watch/$2$3"">$2$3</a>") retStr = retStr.Replace("<<<<<tweenだいなり>>>>>", ">").Replace("<<<<<tweenしょうなり>>>>>", "<") @@ -3229,7 +3229,7 @@ End If End If - ret = Regex.Replace(ret, "(^|[^a-zA-Z0-9_/&##@@>=.])(sm|nm)([0-9]{1,10})", "$1<a href=""http://www.nicovideo.jp/watch/$2$3"">$2$3</a>") + ret = Regex.Replace(ret, "(^|[^a-zA-Z0-9_/&##@@>=.~])(sm|nm)([0-9]{1,10})", "$1<a href=""http://www.nicovideo.jp/watch/$2$3"">$2$3</a>") ret = AdjustHtml(ShortUrl.Resolve(PreProcessUrl(ret), False)) 'IDN置換、短縮Uri解決、@リンクを相対→絶対にしてtarget属性付与 Return ret