From 4d7456b5c2b5e1407bb43fb1aa2be06089e66bf9 Mon Sep 17 00:00:00 2001 From: Wyatt Pearsall Date: Tue, 12 Mar 2024 10:57:32 -0400 Subject: [PATCH] all dashes to hyphen --- .github/workflows/sed.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sed.sh b/.github/workflows/sed.sh index 45129a2..e80e45a 100755 --- a/.github/workflows/sed.sh +++ b/.github/workflows/sed.sh @@ -3,6 +3,6 @@ sed -E\ -e '/^ *$/d' `# Whitespace-only or empty lines` \ -e 's/ / /g' `# nbsp to space` \ - -e 's/–/-/g' `# endash to hyphen` \ + -e 's/[—–]/-/g' `# em- and en-dash to hyphen` \ -e "s/’/'/g" `# apostrophe to single quote` \ - -e 's/[[:blank:]]([—-])[[:blank:]]/\1/g' `# collapse whitespace around emdash and hyphen` + -e 's/[[:blank:]]-[[:blank:]]/\1/g' `# collapse whitespace around hyphen`