enhance: allow to compile with dotnet 8.0.106 (#281)

This commit is contained in:
leo 2024-07-24 19:07:31 +08:00
parent 8e60ec619e
commit efe6d743cf
No known key found for this signature in database

View file

@ -19,7 +19,7 @@ namespace SourceGit.Commands
if (!rs.IsSuccess)
return status;
var lines = rs.StdOut.Split(['\n', '\r'], StringSplitOptions.RemoveEmptyEntries);
var lines = rs.StdOut.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var line in lines)
{
if (line[0] == '>')