Fix a7800 matching

I forgot that the length of the string is TWICE the size of the byte array. This caused the wrong number to be attempted to be matched.
This commit is contained in:
Matt Nadareski
2016-03-28 01:48:28 -07:00
parent bcf6d8434e
commit d034645911

View File

@@ -64,7 +64,7 @@ namespace Deheader
// Determine the type of the file from the header, if possible
string type = "";
if (Regex.IsMatch(header, "^.415441524937383030") || Regex.IsMatch(header, "^.{64}41435455414C20434152542044415441205354415254532048455245"))
if (Regex.IsMatch(header, "^.415441524937383030") || Regex.IsMatch(header, "^.{200}41435455414C20434152542044415441205354415254532048455245"))
{
type = "a7800";
}