Skip to content

Commit

Permalink
FIX #765 - do whole-word search for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoostenveld committed Feb 7, 2024
1 parent 4204f18 commit 55f37ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ done

# this constructs a list of pages that have a certain tag
for TAG in `cat ${TAGFILE}` ; do
FILELIST=`find . -name \*.md | xargs grep -l ^tags:.*${TAG} | sort | uniq `
FILELIST=`find . -name \*.md | xargs grep -wl ^tags:.*${TAG} | sort | uniq `
for FILE in ${FILELIST}; do
NAME=`grep title: $FILE | cut -d : -f 2 | cut -b 2-`
LINK=${FILE:1:$((${#FILE}-4))}
Expand Down

0 comments on commit 55f37ea

Please sign in to comment.