Skip to content

Commit

Permalink
chore: enhance index function
Browse files Browse the repository at this point in the history
Signed-off-by: Rodolfo Mói de Oliveira <rodmoi.oliveira@gmail.com>
  • Loading branch information
rodmoioliveira committed Oct 22, 2024
1 parent 4df0a5f commit 193cad9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ index() {
grep -E '^#{1,} [A-Z]' |
sed 's/#//g' |
sed -E 's/^ {1,}//g' |
sed -E 's/[?,]//g' |
# https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html
sed -E "s1[][!#$%&'()*+,./:;<=>?@\\^_\`{|}~]11g" |
sed -E 's/"//g'|
sed 's/[A-Z]/\L&/g' |
sed 's/ /-/g' |
sed -E 's@(.+)@(#\1)@g'
Expand Down

0 comments on commit 193cad9

Please sign in to comment.