One last regex update

This commit is contained in:
Matt Nadareski
2025-05-14 20:22:38 -04:00
parent 1f2042a35b
commit d43a6d2074

View File

@@ -179,7 +179,9 @@ namespace SabreTools.Core.Filter
return []; return [];
// Split the string into parseable pieces // Split the string into parseable pieces
return Regex.Split(input, @"(\(|\S+|\))"); // - Left and right parenthesis are separate
// - All non-whitespace characters match
return Regex.Split(input, @"(\(|\)|[^\s()]+)");
} }
#endregion #endregion