Skip to content

Commit

Permalink
mkindex: ignore leading /, < and . as well
Browse files Browse the repository at this point in the history
Just as it already ignored leading dashes. This makes it sort
"/etc/host" in E and ".netrc" in N.
  • Loading branch information
bagder committed Jan 10, 2024
1 parent b5aa9a8 commit ee9444f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkindex.pl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ sub single {
sub sorting {
my ($s) = @_;
$s = uc($s); # first uppercase
$s =~ s/^[-]+//; # remove initial junk
$s =~ s/^[-<\/.]+//; # remove initial junk
return $s;
}

Expand Down

0 comments on commit ee9444f

Please sign in to comment.