mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-11-15 17:02:03 +00:00
Merge pull request #1490 from adamhathcock/fix/legacy-startswith-char
Fix netstandard2.0/net48 build in writable archive key normalisation
This commit is contained in:
@@ -170,7 +170,7 @@ public abstract partial class AbstractWritableArchive<TEntry, TVolume, TOptions>
|
||||
}
|
||||
return key.Trim('/');
|
||||
}
|
||||
return key.StartsWith('/') ? key.Substring(1) : key;
|
||||
return key.Length > 0 && key[0] == '/' ? key.Substring(1) : key;
|
||||
}
|
||||
|
||||
ValueTask IWritableAsyncArchive.RemoveEntryAsync(IArchiveEntry entry) =>
|
||||
|
||||
Reference in New Issue
Block a user