diff options
author | EuAndreh <eu@euandre.org> | 2020-11-06 10:20:06 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-06 10:20:06 -0300 |
commit | 81f036a50febe8a20555749ef297f0ba6e54caa0 (patch) | |
tree | 9477aa685911472cd3bfe29e7b0e23e2c2a4f89a | |
parent | Fix 'nix-build -A test' run (diff) | |
download | euandre.org-81f036a50febe8a20555749ef297f0ba6e54caa0.tar.gz euandre.org-81f036a50febe8a20555749ef297f0ba6e54caa0.tar.xz |
assert-content.sh: Translate '/' into '-' in slugify()
Diffstat (limited to '')
-rwxr-xr-x | scripts/assert-content.sh | 1 |
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; |