OSDN Git Service

Foursquareのサムネイル表示の正規表現に swarmapp.com を追加
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 25 May 2014 04:47:06 +0000 (13:47 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 25 May 2014 07:12:29 +0000 (16:12 +0900)
OpenTween/Resources/ChangeLog.txt
OpenTween/Thumbnail/Services/FoursquareCheckin.cs

index b60abab..ad511c2 100644 (file)
@@ -2,6 +2,7 @@
 
 ==== Ver 1.2.1-beta1(2014/xx/xx)
  * CHG: 起動時に .NET Framework 4.5.1 以降がインストールされているか確認を行います
+ * CHG: Foursquareの地図表示を swarmapp.com のURLでも表示可能にしました
  * FIX: 発言詳細欄から右クリックで日本語ハッシュタグを固定すると、エンコード状態のハッシュタグが登録される問題を修正
  * FIX: PublicSearchタブでの検索時に Err:Unauthorized(GetSearch) が表示される問題の回避策を追加
  * FIX: サムネイル画像の読み込み中に別のツイートに選択を移動した際に動作が固まる現象の回避 (thx @_1t_, @Tan90909090, @suzushin!)
index 4ae2f26..22476ee 100644 (file)
@@ -36,7 +36,7 @@ namespace OpenTween.Thumbnail.Services
     class FoursquareCheckin : IThumbnailService
     {
         public static readonly Regex UrlPatternRegex =
-            new Regex(@"^https?://foursquare\.com/.+?/checkin/(?<checkin_id>[0-9a-z]+)(?:\?s=(?<signature>[^&]+))?");
+            new Regex(@"^https?://(?:foursquare\.com|www\.swarmapp\.com)/.+?/checkin/(?<checkin_id>[0-9a-z]+)(?:\?s=(?<signature>[^&]+))?");
 
         public static readonly string ApiBase = "https://api.foursquare.com/v2";