Skip to content

Commit

Permalink
trim method was called for more precise results for search criteria c…
Browse files Browse the repository at this point in the history
…ontaining spaces in text searches.
  • Loading branch information
byerlikaya committed May 16, 2024
1 parent 61571d7 commit 88772b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/SmartWhere/SmartWhere.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public static IQueryable<T> Where<T>(this IQueryable<T> source, IWhereClause whe
if (propertyValue.ValueControl())
continue;

if (propertyValue is string)
propertyValue = propertyValue.ToString().Trim();

comparison = GetComparison<T>(
parameter,
whereClauseProperty,
Expand Down
2 changes: 1 addition & 1 deletion src/SmartWhere/SmartWhere.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>SmartWhere</PackageId>
<Version>2.2.0.3</Version>
<Version>2.2.1</Version>
<Authors>Barış Yerlikaya</Authors>
<Company>Barış Yerlikaya</Company>
<Product>SmartWhere</Product>
Expand Down

0 comments on commit 88772b0

Please sign in to comment.