Skip to content

Commit 52f882c

Browse files
committed
Change count of ":" to more than 3
1 parent 1eee6c5 commit 52f882c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/AvoidUsingInternalURLs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
115115
{
116116
//Add a check to exclude potential SDDL format. Check if a string have four components separated by ":"
117117
var count = firstPartURL.Count(x => x == ':');
118-
if (count !=3 )
118+
if (count > 3 )
119119
{
120120
isInternalURL = true;
121121
}

0 commit comments

Comments
 (0)