tindex.dcgi: allow 'vegetarian' keyword anywhere in arguments - recipes - various cooking recipes
 (HTM) git clone git://src.adamsgaard.dk/recipes
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 4917e2cf632f74d23336882d1d123078d55129c1
 (DIR) parent 42367488a8c9008045e52f1fd6c406fef85dd0f9
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Fri, 27 Aug 2021 15:37:08 +0200
       
       index.dcgi: allow 'vegetarian' keyword anywhere in arguments
       
       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}" | cut -c 11-)"
       +*vegetarian*)
       +        arguments="$(printf '%s\n' "${arguments}" | sed 's/ *vegetarian *//')"
                searchvegetarian=1
                ;;
        esac