aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-11-06 18:28:51 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-11-06 18:28:51 +0000
commit005d478a9b33ba0b951939538e841ec20cf808d4 (patch)
tree36014153cf5fecae2821329f11005ac4aac343ed
parentc4ef6ac13ed9566225750050f0a7286f849cf84c (diff)
Replaced \w with [_[:alnum:]]
-rwxr-xr-xblarg3
1 files changed, 2 insertions, 1 deletions
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