Skip to content

Commit

Permalink
fix(graphql-api): Search with a space ending works now
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Sep 19, 2020
1 parent ff82210 commit dfb8c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/graphql-api/src/shared/content/content.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export abstract class ContentService {
...query,
title: {
// Update the query to make it better searchable
$regex: contentArgs.query.split(' ').join('.+'),
$regex: contentArgs.query.trim().split(' ').join('.+'),
$options: 'i'
}
}
Expand Down

0 comments on commit dfb8c1c

Please sign in to comment.