From 81f036a50febe8a20555749ef297f0ba6e54caa0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 6 Nov 2020 10:20:06 -0300 Subject: assert-content.sh: Translate '/' into '-' in slugify() --- scripts/assert-content.sh | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3