Filters don't work when searched value contains:
- {some_text}<
- {some_text}>
- {some_text},{some_text}
- {some_text}|
- {some_text}.
- <>
- ,
- =
- and in other cases with special characters
In some case it throws error "The binary operator GreaterThan/Less than is not defined" or "{some_text} not found" and in other cases just returns all data.
I investigate this and found out that the issue with <>= characters is in regexp for filterSplits here:
https://github.com/Biarity/Sieve/blob/master/Sieve/Models/FilterTerm.cs#L36
Special characters considered as Operators in this case.
Also, issue with comma is in regexp for filters:
https://github.com/Biarity/Sieve/blob/master/Sieve/Models/SieveModel.cs#L35
These fixes require a lot of improvements in the library logic, and it will be great if you add support for special characters.
Thanks in advance!
Filters don't work when searched value contains:
In some case it throws error "The binary operator GreaterThan/Less than is not defined" or "{some_text} not found" and in other cases just returns all data.
I investigate this and found out that the issue with <>= characters is in regexp for filterSplits here:
https://github.com/Biarity/Sieve/blob/master/Sieve/Models/FilterTerm.cs#L36
Special characters considered as Operators in this case.
Also, issue with comma is in regexp for filters:
https://github.com/Biarity/Sieve/blob/master/Sieve/Models/SieveModel.cs#L35
These fixes require a lot of improvements in the library logic, and it will be great if you add support for special characters.
Thanks in advance!