[Tween-svn] [1063] Sourceのリンク部分もフィルタが効くようにした

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 11月 12日 (金) 22:21:09 JST


Revision: 1063
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1063
Author:   syo68k
Date:     2010-11-12 22:21:09 +0900 (Fri, 12 Nov 2010)

Log Message:
-----------
Sourceのリンク部分もフィルタが効くようにした

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


-------------- next part --------------
Modified: trunk/Tween/StatusDictionary.vb
===================================================================
--- trunk/Tween/StatusDictionary.vb	2010-11-12 12:21:32 UTC (rev 1062)
+++ trunk/Tween/StatusDictionary.vb	2010-11-12 13:21:09 UTC (rev 1063)
@@ -2154,10 +2154,13 @@
     Public Function IsHit(ByVal post As PostClass) As HITRESULT
         Dim bHit As Boolean = True
         Dim tBody As String
+        Dim tSource As String
         If _searchUrl Then
             tBody = post.OriginalData
+            tSource = post.SourceHtml
         Else
             tBody = post.Data
+            tSource = post.Source
         End If
         '検索オプション
         Dim compOpt As System.StringComparison
@@ -2221,17 +2224,19 @@
         End If
         If Not String.IsNullOrEmpty(_source) Then
             If _useRegex Then
-                If Not Regex.IsMatch(post.Source, _source, rgOpt) Then bHit = False
+                If Not Regex.IsMatch(tSource, _source, rgOpt) Then bHit = False
             Else
-                If Not post.Source.Equals(_source, compOpt) Then bHit = False
+                If Not tSource.Equals(_source, compOpt) Then bHit = False
             End If
         End If
         If bHit Then
             '除外判定
             If _exsearchUrl Then
                 tBody = post.OriginalData
+                tSource = post.SourceHtml
             Else
                 tBody = post.Data
+                tSource = post.Source
             End If
 
             Dim exFlag As Boolean = False
@@ -2298,9 +2303,9 @@
             End If
             If Not String.IsNullOrEmpty(_exSource) Then
                 If _exuseRegex Then
-                    If Regex.IsMatch(post.Source, _exSource, rgOpt) Then exFlag = True
+                    If Regex.IsMatch(tSource, _exSource, rgOpt) Then exFlag = True
                 Else
-                    If post.Source.Equals(_exSource, compOpt) Then exFlag = True
+                    If tSource.Equals(_exSource, compOpt) Then exFlag = True
                 End If
             End If
 



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