Skip to content

Commit

Permalink
Version 1.3.0 - Patch
Browse files Browse the repository at this point in the history
- Support for .NET 8 was introduced
- Refactored the code
- IOK-based endpoints are currently out of order
  • Loading branch information
akacdev committed Nov 25, 2023
1 parent b5770bb commit 44d9ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion PhishReport/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ internal class Constants
"savepage-we"
};

public static readonly Regex IokIndicatorRegex = new(@"href=\""\/IOK\/indicators\/(.+)\"">", RegexOptions.Multiline | RegexOptions.Compiled);
private static readonly Regex Regex = new(@"href=\""\/IOK\/indicators\/(.+)\"">", RegexOptions.Multiline | RegexOptions.Compiled);
public static readonly Regex IokIndicatorRegex = Regex;
}
}
2 changes: 1 addition & 1 deletion PhishReport/PhishReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private async Task PollIoK()
IokMatch[] matches = await GetIokMatches();

if (LastIokMatches is null) found = matches;
else found = matches.Where(match => LastIokMatches.All(last => match.UrlscanUUID != last.UrlscanUUID)).ToArray();
else found = matches.Where(match => LastIokMatches.All(last => match.UrlscanUuid != last.UrlscanUuid)).ToArray();

LastIokMatches = matches;

Expand Down

0 comments on commit 44d9ac8

Please # to comment.