Skip to content

Conversation

gadfly3173
Copy link
Contributor

No description provided.

@love-linger love-linger self-assigned this Mar 17, 2025
@love-linger love-linger added the bug Something isn't working label Mar 17, 2025
@love-linger love-linger merged commit b930066 into sourcegit-scm:develop Mar 17, 2025
13 checks passed
return null;

var lines = raw.Split('\n');
var lines = raw.Split(['\n', '\r'], StringSplitOptions.RemoveEmptyEntries);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can NOT use StringSplitOptions.RemoveEmptyEntries option here, because Signer may be missing.

@love-linger
Copy link
Collaborator

I'll try to fix this

love-linger added a commit that referenced this pull request Mar 17, 2025
- Use new syntex `[...]` instead of `new char[] {...}` to create char arrays
- Use `string.ReplaceLineEndings('\n').Split('\n')` instead of `string.Split(['\n', '\r'], StringSplitOptions.RemoveEmptyEntries)` because that the `Signer` part may be missing

Signed-off-by: leo <longshuang@msn.cn>
@gadfly3173 gadfly3173 deleted the fix/split-line branch March 17, 2025 16:42
@gadfly3173
Copy link
Contributor Author

src/Commands/QuerySubmodules.cs \r 被改成了 r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants