Skip to content

Commit

Permalink
Merge pull request #126 from shalzuth/main
Browse files Browse the repository at this point in the history
Asset file regex fix for custom versions containing a dash
  • Loading branch information
nesrak1 authored Oct 31, 2023
2 parents 6ab1475 + acb8cc5 commit 2207c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AssetTools.NET/Standard/AssetsFileFormat/AssetsFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ public static bool IsAssetsFile(AssetsFileReader reader, long offset, long lengt
}
}

string emptyVersion = Regex.Replace(possibleVersion, "[a-zA-Z0-9\\.\\n]", "");
string fullVersion = Regex.Replace(possibleVersion, "[^a-zA-Z0-9\\.\\n]", "");
string emptyVersion = Regex.Replace(possibleVersion, "[a-zA-Z0-9\\.\\n\\-]", "");
string fullVersion = Regex.Replace(possibleVersion, "[^a-zA-Z0-9\\.\\n\\-]", "");
return emptyVersion == "" && fullVersion.Length > 0;
}

Expand Down

0 comments on commit 2207c78

Please sign in to comment.