Skip to content

Commit

Permalink
all dashes to hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Mar 12, 2024
1 parent d9733c1 commit 4d7456b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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`

0 comments on commit 4d7456b

Please sign in to comment.