mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Whitespace was getting escaped
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user