From 005d478a9b33ba0b951939538e841ec20cf808d4 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Wed, 6 Nov 2024 18:28:51 +0000 Subject: Replaced \w with [_[:alnum:]] --- blarg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blarg b/blarg index 67b7e96..6d80dc8 100755 --- a/blarg +++ b/blarg @@ -75,7 +75,8 @@ EOF write_page() { filename=$1 - target=$(echo "$filename" | sed -r 's|\w+/(.*).md|build/\1.html|') + echo $filename + target=$(echo "$filename" | sed -r 's|[_[:alnum:]]+(.*).md|build\1.html|') # year=$(date +"%Y") created=$(echo "$3" | sed 's/T.*//') # Reverse date from YYYY-MM-DD to DD-MM-YY -- cgit v1.2.3