tRevert "index.dcgi: allow 'vegetarian' keyword anywhere in arguments" - recipes - various cooking recipes
HTML git clone git://src.adamsgaard.dk/recipes
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 5f2e271789130a0ac204df854e2085395855b685
DIR parent 4917e2cf632f74d23336882d1d123078d55129c1
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 27 Aug 2021 15:42:41 +0200
Revert "index.dcgi: allow 'vegetarian' keyword anywhere in arguments"
This reverts commit 4917e2cf632f74d23336882d1d123078d55129c1.
Diffstat:
M index.dcgi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/index.dcgi b/index.dcgi
t@@ -26,8 +26,8 @@ gphfmt() {
searchvegetarian=0
case "${arguments}" in
-*vegetarian*)
- arguments="$(printf '%s\n' "${arguments}" | sed 's/ *vegetarian *//')"
+vegetarian*)
+ arguments="$(printf "%s\n" "${arguments}" | cut -c 11-)"
searchvegetarian=1
;;
esac