Skip to content

Commit

Permalink
Merge pull request #287 from shalzuth/master
Browse files Browse the repository at this point in the history
Update FileTypeDetector to include dashes in custom unity versions
  • Loading branch information
nesrak1 committed Oct 30, 2023
2 parents bd11dc5 + 5e2698b commit d550852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UABEAvalonia/Logic/FileTypeDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public static DetectedFileType DetectFileType(AssetsFileReader r, long startAddr
break;
}
}
emptyVersion = Regex.Replace(possibleVersion, "[a-zA-Z0-9\\.\\n]", "");
fullVersion = Regex.Replace(possibleVersion, "[^a-zA-Z0-9\\.\\n]", "");
emptyVersion = Regex.Replace(possibleVersion, "[a-zA-Z0-9\\.\\n\\-]", "");
fullVersion = Regex.Replace(possibleVersion, "[^a-zA-Z0-9\\.\\n\\-]", "");

if (possibleBundleHeader == "UnityFS")
{
Expand Down

0 comments on commit d550852

Please sign in to comment.