[Tween-svn] [1599] TwitterのConfigが取得できなかった時にユーザー名判断が正しくできないバグ修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 9月 22日 (木) 10:12:44 JST


Revision: 1599
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1599
Author:   kiri_feather
Date:     2011-09-22 10:12:43 +0900 (Thu, 22 Sep 2011)

Log Message:
-----------
TwitterのConfigが取得できなかった時にユーザー名判断が正しくできないバグ修正

Modified Paths:
--------------
    trunk/Tween/Tween.vb


-------------- next part --------------
Modified: trunk/Tween/Tween.vb
===================================================================
--- trunk/Tween/Tween.vb	2011-09-18 07:33:48 UTC (rev 1598)
+++ trunk/Tween/Tween.vb	2011-09-22 01:12:43 UTC (rev 1599)
@@ -9192,8 +9192,11 @@
     ' URLから切り出した文字列を渡す
 
     Public Function IsTwitterId(ByVal name As String) As Boolean
-        'Return Not Regex.Match(name, "^(about|jobs|tos|privacy|who_to_follow|download|messages)$").Success
-        Return Not SettingDialog.TwitterConfiguration.NonUsernamePaths.Contains(name.ToLower())
+        If SettingDialog.TwitterConfiguration.NonUsernamePaths Is Nothing OrElse SettingDialog.TwitterConfiguration.NonUsernamePaths.Length = 0 Then
+            Return Not Regex.Match(name, "^(about|jobs|tos|privacy|who_to_follow|download|messages)$", RegexOptions.IgnoreCase).Success
+        Else
+            Return Not SettingDialog.TwitterConfiguration.NonUsernamePaths.Contains(name.ToLower())
+        End If
     End Function
 
     Private Function GetUserId() As String



Tween-svn メーリングリストの案内
Back to archive index