Skip to content

Commit

Permalink
Update urlify.pl to handle single character '.' and '/' headings
Browse files Browse the repository at this point in the history
  • Loading branch information
sluicing committed Jan 8, 2024
1 parent 8dcc6f2 commit dbd129b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions urlify.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ sub urlify {
# Convert all '>' to '-greater-than'
$section =~ s/\>/-greater-than-/g;

# Convert all '.' to '-dot'
$section =~ s/\./-dot-/g;

# Convert all '/' to '-slash'
$section =~ s/\//-slash-/g;

# remove rubbish
$section =~ s/[*`'":\(\),]+//g;

Expand Down

0 comments on commit dbd129b

Please sign in to comment.