mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Trim quotes, if necessary
This commit is contained in:
@@ -413,6 +413,10 @@ namespace SabreTools.Core.Filter
|
||||
if (filterString == null)
|
||||
return (null, Operation.NONE, null);
|
||||
|
||||
// Trim quotations, if necessary
|
||||
if (filterString.StartsWith("\""))
|
||||
filterString = filterString.Substring(1, filterString.Length - 2);
|
||||
|
||||
// Split the string using regex
|
||||
var match = Regex.Match(filterString, @"^(?<itemField>[a-zA-Z.]+)(?<operation>[=!:><]{1,2})(?<value>.*)$");
|
||||
if (!match.Success)
|
||||
|
||||
Reference in New Issue
Block a user