dev
修訂 | 7f803eae20d8c19c0388de2ca2e2170be05c0883 (tree) |
---|---|
時間 | 2012-02-18 23:19:53 |
作者 | kiri_feather <kiri_feather@user...> |
Commiter | Kimura Youichi |
1070リリース
UAC不要な環境で、自動バージョンアップ後Tweenが起動してこないバグ修正
非公式RTで正規表現でのReplaceポカミス修正
投稿欄の文字数カウントで一部URLの認識バグ修正
Fav時のエラーメッセージがFavQueueのままになっていたので戻し
@@ -55,5 +55,5 @@ Imports System.Runtime.InteropServices | ||
55 | 55 | ' <Assembly: AssemblyVersion("1.0.*")> |
56 | 56 | |
57 | 57 | <Assembly: AssemblyVersion("0.1.0.0")> |
58 | -<Assembly: AssemblyFileVersion("1.0.6.0")> | |
58 | +<Assembly: AssemblyFileVersion("1.0.7.0")> | |
59 | 59 |
@@ -1,5 +1,9 @@ | ||
1 | 1 | 更新履歴 |
2 | 2 | |
3 | +==== Ver 1.0.7.0(2011/9/11) | |
4 | + * FIX: 非公式RT・QTで元発言中URLが{$title}となってしまうバグ修正 | |
5 | + * FIX: 一部URLのt.co換算文字カウントが正しくなかったのを修正 | |
6 | + * FIX: Fav失敗時のメッセージを一部修正 | |
3 | 7 | ==== Ver 1.0.6.0(2011/9/11) |
4 | 8 | * FIX: 起動するたびに発言詳細、投稿入力欄が小さくなってしまうバグ修正 |
5 | 9 | * FIX: 非公式RT、QTで、元発言中のURLが表示通りの省略表記のまま発言欄にコピーされるバグ修正 |
@@ -8863,7 +8863,7 @@ RETRY: | ||
8863 | 8863 | 'Else |
8864 | 8864 | ' status = Regex.Replace(status, "<a target=""_self"" href=""(?<url>[^""]+)""[^>]*>(?<link>(https?|shttp|ftps?)://[^<]+)</a>", "${link}") |
8865 | 8865 | 'End If |
8866 | - status = Regex.Replace(status, "<a target=""_self"" href=""(?<url>[^""]+)"" title=""(?<title>[^""]+)""[^>]*>(?<link>[^<]+)</a>", "{$title}") | |
8866 | + status = Regex.Replace(status, "<a target=""_self"" href=""(?<url>[^""]+)"" title=""(?<title>[^""]+)""[^>]*>(?<link>[^<]+)</a>", "${title}") | |
8867 | 8867 | |
8868 | 8868 | 'その他のリンク(@IDなど)を置き換える |
8869 | 8869 | status = Regex.Replace(status, "@<a target=""_self"" href=""https?://twitter.com/(#!/)?(?<url>[^""]+)""[^>]*>(?<link>[^<]+)</a>", "@${url}") |
@@ -52,7 +52,7 @@ Public Class Twitter | ||
52 | 52 | Public Const HASHTAG As String = "(" + HASHTAG_BOUNDARY + ")(#|#)(" + HASHTAG_ALPHANUMERIC + "*" + HASHTAG_ALPHA + HASHTAG_ALPHANUMERIC + "*)(?=" + HASHTAG_TERMINATOR + "|" + HASHTAG_BOUNDARY + ")" |
53 | 53 | 'URL正規表現 |
54 | 54 | Private Const url_valid_domain As String = "(?<domain>(?:[^\p{P}\s][\.\-_](?=[^\p{P}\s])|[^\p{P}\s]){1,}\.[a-z]{2,}(?::[0-9]+)?)" |
55 | - Private Const url_valid_general_path_chars As String = "[a-z0-9!*';:=+$/%#\[\]\-_,~]" | |
55 | + Private Const url_valid_general_path_chars As String = "[a-z0-9!*';:=+$/%#\[\]\-_&,~]" | |
56 | 56 | Private Const url_balance_parens As String = "(?:\(" + url_valid_general_path_chars + "+\))" |
57 | 57 | Private Const url_valid_url_path_ending_chars As String = "(?:[a-z0-9=_#/\-\+]+|" + url_balance_parens + ")" |
58 | 58 | Private Const pth As String = "(?:" + url_balance_parens + |
@@ -1107,7 +1107,8 @@ Public Class Twitter | ||
1107 | 1107 | res = twCon.CreateFavorites(id, content) |
1108 | 1108 | Catch ex As Exception |
1109 | 1109 | 'Me.favQueue.Add(id) |
1110 | - Return "Err:->FavoriteQueue:" + ex.Message + "(" + GetCurrentMethod.Name + ")" | |
1110 | + 'Return "Err:->FavoriteQueue:" + ex.Message + "(" + GetCurrentMethod.Name + ")" | |
1111 | + Return "Err:" + ex.Message + "(" + GetCurrentMethod.Name + ")" | |
1111 | 1112 | End Try |
1112 | 1113 | |
1113 | 1114 | Select Case res |
@@ -1123,15 +1124,15 @@ Public Class Twitter | ||
1123 | 1124 | If String.IsNullOrEmpty(errMsg) Then |
1124 | 1125 | Return "Err:Forbidden(" + GetCurrentMethod.Name + ")" |
1125 | 1126 | Else |
1126 | - If errMsg.Contains("It's great that you like so many updates") Then | |
1127 | - 'Me.favQueue.Add(id) | |
1128 | - Return "Err:->FavoriteQueue:" + errMsg | |
1129 | - End If | |
1127 | + 'If errMsg.Contains("It's great that you like so many updates") Then | |
1128 | + ' 'Me.favQueue.Add(id) | |
1129 | + ' Return "Err:->FavoriteQueue:" + errMsg | |
1130 | + 'End If | |
1130 | 1131 | Return "Err:" + errMsg |
1131 | 1132 | End If |
1132 | - Case HttpStatusCode.BadGateway, HttpStatusCode.ServiceUnavailable, HttpStatusCode.InternalServerError, HttpStatusCode.RequestTimeout | |
1133 | - 'Me.favQueue.Add(id) | |
1134 | - Return "Err:->FavoriteQueue:" + res.ToString + "(" + GetCurrentMethod.Name + ")" | |
1133 | + 'Case HttpStatusCode.BadGateway, HttpStatusCode.ServiceUnavailable, HttpStatusCode.InternalServerError, HttpStatusCode.RequestTimeout | |
1134 | + ' 'Me.favQueue.Add(id) | |
1135 | + ' Return "Err:->FavoriteQueue:" + res.ToString + "(" + GetCurrentMethod.Name + ")" | |
1135 | 1136 | Case Else |
1136 | 1137 | Return "Err:" + res.ToString + "(" + GetCurrentMethod.Name + ")" |
1137 | 1138 | End Select |
@@ -253,6 +253,10 @@ Public Class Form1 | ||
253 | 253 | ' 「新しいTweenを起動しています」 |
254 | 254 | BackgroundWorker1.ReportProgress(0, userState:=My.Resources.ProgressExecuteTween) |
255 | 255 | |
256 | + If My.Application.CommandLineArgs.Count = 1 Then | |
257 | + Process.Start(Path.Combine(TWEENEXEPATH, My.Resources.FilenameTweenExe)) | |
258 | + End If | |
259 | + | |
256 | 260 | 'Process.Start(Path.Combine(TWEENEXEPATH, My.Resources.FilenameTweenExe)) |
257 | 261 | |
258 | 262 | End Sub |