aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-06 10:20:06 -0300
committerEuAndreh <eu@euandre.org>2020-11-06 10:20:06 -0300
commit81f036a50febe8a20555749ef297f0ba6e54caa0 (patch)
tree9477aa685911472cd3bfe29e7b0e23e2c2a4f89a /scripts
parentFix 'nix-build -A test' run (diff)
downloadeuandre.org-81f036a50febe8a20555749ef297f0ba6e54caa0.tar.gz
euandre.org-81f036a50febe8a20555749ef297f0ba6e54caa0.tar.xz
assert-content.sh: Translate '/' into '-' in slugify()
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/assert-content.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh
index 16fa2d6..a832a23 100755
--- a/scripts/assert-content.sh
+++ b/scripts/assert-content.sh
@@ -20,6 +20,7 @@ slugify() {
echo "${1}" | \
tr '[:upper:]' '[:lower:]' | \
perl -ne 'tr/\000-\177//cd;
+ s|/|-|g;
s/[^\w\s-.]//g;
s/^\s+|\s+$//g;
s/[-\s.]+/-/g;