File fixes.

This commit is contained in:
Ottermandias 2022-03-18 10:07:59 +01:00
parent 0ba0c6d057
commit 5ed80c753f
2 changed files with 3 additions and 5 deletions

View file

@ -37,8 +37,7 @@ public readonly struct Utf8RelPath : IEquatable< Utf8RelPath >, IComparable< Utf
return true;
}
var substring = s!.Replace( '/', '\\' );
substring.TrimStart( '\\' );
var substring = s!.Replace( '/', '\\' ).TrimStart('\\');
if( substring.Length > MaxRelPathLength )
{
return false;