mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
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:
@@ -64,7 +64,7 @@ namespace Deheader
|
|||||||
|
|
||||||
// Determine the type of the file from the header, if possible
|
// Determine the type of the file from the header, if possible
|
||||||
string type = "";
|
string type = "";
|
||||||
if (Regex.IsMatch(header, "^.415441524937383030") || Regex.IsMatch(header, "^.{64}41435455414C20434152542044415441205354415254532048455245"))
|
if (Regex.IsMatch(header, "^.415441524937383030") || Regex.IsMatch(header, "^.{200}41435455414C20434152542044415441205354415254532048455245"))
|
||||||
{
|
{
|
||||||
type = "a7800";
|
type = "a7800";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user