diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-11-06 18:28:51 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-11-06 18:28:51 +0000 |
commit | 005d478a9b33ba0b951939538e841ec20cf808d4 (patch) | |
tree | 36014153cf5fecae2821329f11005ac4aac343ed | |
parent | c4ef6ac13ed9566225750050f0a7286f849cf84c (diff) |
Replaced \w with [_[:alnum:]]
-rwxr-xr-x | blarg | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |