2ちゃんねる用ブラウザ「twintail」Part26 at SOFTWARE
[2ch|▼Menu]
253:水玉 ◆qHK1vdR8FRIm
10/02/03 00:14:47 R0RzkDww0
とりあえず対応するとしたら

Twintail Project\ch2Solution\twin\Bbs\Machi\MachiThreadHeader.cs
 /// <summary>
 /// スレッドのURLを取得
 /// </summary>
 public override string Url {
   get {
     //return String.Format("URLリンク({0})",
     return String.Format("URLリンク({0})",
       BoardInfo.Server, BoardInfo.Path, Key);
   }
 }

Twintail Project\ch2Solution\twin\Base\Text\URLParser.cs
 /// <summary>
 /// スレッドのURLを解析するための正規表現
 /// </summary>
 protected static readonly Regex[] ParseThreadRegexArray =
   new Regex[] {
     new Regex(@"^h?http://(?<host>[\w\-~/_.]+)/test/(read\.cgi|r\.i)/(?<path>[^/]+)/(?<key>[^/]+)/?", RegexOptions.Compiled),  // 2chまたは2ch互換のURL
     new Regex(@"^h?http://(?<host>[\w\-~/_.]+)/test/read\.cgi\?bbs=(?<path>\w+?)&key=(?<key>\w+)", RegexOptions.Compiled),    // 旧2chURL
     new Regex(@"^h?http://(?<host>[^/]+)/(?<path>\w+?)/kako/[\d/]+?/(?<key>\d+)\.html", RegexOptions.Compiled),          // 2ch過去ログURL
     new Regex(@"^h?http://(?<host>[\w\-~/_.]+)/bbs/read\.(pl|cgi)\?BBS=(?<path>\w+?)&KEY=(?<key>\w+)", RegexOptions.Compiled),      // まちBBSのURL(QueryString形式)
     new Regex(@"^h?http://(?<host>[\w\-~/_.]+)/bbs/read\.cgi/(?<path>[^/]+)/(?<key>[^/]+)/?", RegexOptions.Compiled),      // まちBBSのURL(PathInfo形式)
     new Regex(@"^h?http://(?<host>\w+\.(shitaraba|livedoor)\.(com|jp))/bbs/read\.cgi/(?<path>\w+/\d+)/(?<key>[^/]+)/?", RegexOptions.Compiled),    // したらばのURL
   };

>>228のリンクは開くようになります。


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5403日前に更新/200 KB
担当:undef