enhance: force using StringComparison.Ordinal

This commit is contained in:
leo 2024-03-14 11:09:05 +08:00
parent cd2ecb109a
commit f6eb1281b5
12 changed files with 23 additions and 19 deletions

View file

@ -51,7 +51,7 @@ namespace SourceGit.Commands {
current = new Models.Commit();
line = line.Substring(7);
var decoratorStart = line.IndexOf('(');
var decoratorStart = line.IndexOf('(', StringComparison.Ordinal);
if (decoratorStart < 0) {
current.SHA = line.Trim();
} else {