mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-21 21:12:50 +01:00
Fixed custom oeprator bug
This commit is contained in:
parent
e9e61b37ae
commit
d3a16d7955
@ -47,7 +47,7 @@ namespace Sieve.Models
|
||||
|
||||
// Custom operator
|
||||
var tokens = _filter.Split(' ');
|
||||
return tokens.Length > 0 ? tokens[1] : "";
|
||||
return tokens.Length > 1 ? tokens[1] : "";
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ namespace Sieve.Models
|
||||
get
|
||||
{
|
||||
var tokens = _filter.Split(operators, StringSplitOptions.RemoveEmptyEntries);
|
||||
return tokens.Length > 0 ? tokens[1].Trim() : null;
|
||||
return tokens.Length > 1 ? tokens[1].Trim() : null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>Sieve</id>
|
||||
<version>1.3.4</version>
|
||||
<version>1.3.5</version>
|
||||
<title>Sieve</title>
|
||||
<authors>Biarity</authors>
|
||||
<owners>Biarity</owners>
|
||||
@ -13,7 +13,7 @@
|
||||
<description>
|
||||
Sieve is a simple, clean, and extensible framework for .NET Core that adds sorting, filtering, and pagination functionality out of the box. Most common use case would be for serving ASP.NET Core GET queries. Documentation available on GitHub: https://github.com/Biarity/Sieve/
|
||||
</description>
|
||||
<releaseNotes>Ignore syntax errors</releaseNotes>
|
||||
<releaseNotes>Fixed custom oeprator bug</releaseNotes>
|
||||
<copyright>Copyright 2018</copyright>
|
||||
<tags>aspnetcore filter sort page paginate sieve search</tags>
|
||||
<dependencies>
|
||||
|
Loading…
Reference in New Issue
Block a user