Added comment

This commit is contained in:
Chomp
2025-01-28 16:06:59 +00:00
parent 9bd50e809f
commit 1969edb824
@@ -131,7 +131,7 @@ public class GiveSptCommand(
.Where((i) => IsItemAllowed(i))
.Select((i) => localizedGlobal[$"{i?.Id} Name"]?.ToLower() ?? i.Properties.Name)
.Where((i) => !string.IsNullOrEmpty(i))
.Select((i) => ({ Match = StringSimilarity(item.ToLower(), i.ToLower())ItemName = i }))
.Select((i) => ({ Match = StringSimilarity(item.ToLower(), i.ToLower())ItemName = i })) // We need to find a similar system to string-similarity-js
.Sort((a1, a2) => a2.match - a1.match);
if (closestItemsMatchedByName[0].match >= _acceptableConfidence) {