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