From 509a9b79da82780c58cf939807ca59611904cd17 Mon Sep 17 00:00:00 2001 From: Mat Fish Date: Tue, 23 Nov 2021 08:56:26 +0200 Subject: [PATCH] make search exact --- CHANGELOG.md | 4 ++++ src/twigextensions/BlogTwigExtension.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33b9c4c..7ae788b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for Blogify +## 1.0.4 - 2021-11-23 +### Fixed +- Made search exact + ## 1.0.3 - 2021-11-22 ### Changed - Changed logo diff --git a/src/twigextensions/BlogTwigExtension.php b/src/twigextensions/BlogTwigExtension.php index 82f54d2..65fcef8 100644 --- a/src/twigextensions/BlogTwigExtension.php +++ b/src/twigextensions/BlogTwigExtension.php @@ -43,7 +43,7 @@ public function search($query) { return Entry::find() ->section(Handles::CHANNEL) - ->search($query); + ->search('"' . $query . '"'); }