Skip to content

Commit dfb8c1c

Browse files
committed
fix(graphql-api): Search with a space ending works now
1 parent ff82210 commit dfb8c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/graphql-api/src/shared/content/content.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export abstract class ContentService {
2626
...query,
2727
title: {
2828
// Update the query to make it better searchable
29-
$regex: contentArgs.query.split(' ').join('.+'),
29+
$regex: contentArgs.query.trim().split(' ').join('.+'),
3030
$options: 'i'
3131
}
3232
}

0 commit comments

Comments
 (0)