mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add GetKey tests
This commit is contained in:
@@ -364,9 +364,6 @@ namespace SabreTools.DatItems
|
||||
}
|
||||
|
||||
key = $"{sourceString}{machineString}";
|
||||
if (lower)
|
||||
key = key.ToLowerInvariant();
|
||||
|
||||
break;
|
||||
|
||||
case ItemKey.MD5:
|
||||
@@ -396,6 +393,8 @@ namespace SabreTools.DatItems
|
||||
|
||||
// Double and triple check the key for corner cases
|
||||
key ??= string.Empty;
|
||||
if (lower)
|
||||
key = key.ToLowerInvariant();
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user