Skip to content

Commit 2d4030c

Browse files
committed
Fix: Make path comparison case-insensitive in cdd command scoring.
1 parent 8d8e3db commit 2d4030c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

G33kShell.Desktop/Terminal/Commands/CddCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ protected override Task<bool> Run(ITerminalState state)
5858
private static double GetScore(string path, string subPath)
5959
{
6060
var lastSegment = path.ToDir().Name;
61-
return string.IsNullOrEmpty(lastSegment) ? 0.0 : Fuzz.PartialRatio(lastSegment, subPath) / 100.0;
61+
return string.IsNullOrEmpty(lastSegment) ? 0.0 : Fuzz.PartialRatio(lastSegment.ToLower(), subPath.ToLower()) / 100.0;
6262
}
6363
}

0 commit comments

Comments
 (0)