diff --git a/SabreTools.Library/DatFiles/FilterItem.cs b/SabreTools.Library/DatFiles/FilterItem.cs index 6b6b7968..2d90249b 100644 --- a/SabreTools.Library/DatFiles/FilterItem.cs +++ b/SabreTools.Library/DatFiles/FilterItem.cs @@ -159,8 +159,8 @@ namespace SabreTools.Library.DatFiles { string regexStraw = strawString; - // If the straw has no special characters at all, treat it as an exact match - if (regexStraw == Regex.Escape(regexStraw)) + // If the straw has no special characters at all (excluding whitespace), treat it as an exact match + if (regexStraw == Regex.Escape(regexStraw).Replace("\\ ", " ")) regexStraw = "^" + regexStraw + "$"; // Check if a match is found with the regex