mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Use DictionaryBase for removal
This commit is contained in:
@@ -25,6 +25,12 @@ namespace SabreTools.Filter
|
||||
string? name = machine.ReadString(Header.NameKey);
|
||||
string? description = machine.ReadString(Header.DescriptionKey);
|
||||
|
||||
// Sanitize the description string
|
||||
description = description?
|
||||
.Replace('/', '_')
|
||||
.Replace("\"", "''")
|
||||
.Replace(":", " -");
|
||||
|
||||
// Replace the name with the description
|
||||
machine[Header.NameKey] = description;
|
||||
return (true, name);
|
||||
|
||||
Reference in New Issue
Block a user