Improve detection for cd/dvd-cops version string (#368)

* Improve detection for cd/dvd-cops version string

* I forgot to include the regex compensation for comma version number cases

* Pasted comment wrong previously

* Implemented Sabre's review fixes, also added check for Codefree
This commit is contained in:
HeroponRikiBestest
2025-05-13 10:59:39 -04:00
committed by GitHub
parent d28d8b5a2b
commit af43748766
2 changed files with 80 additions and 41 deletions

View File

@@ -7,17 +7,6 @@ namespace BinaryObjectScanner.Test.Protection
{
public class CDDVDCopsTests
{
[Fact]
public void CheckContentsTest()
{
string file = "filename";
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
var checker = new CDDVDCops();
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
Assert.Null(actual);
}
[Fact]
public void CheckNewExecutableTest()
{