X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=util%2Fextract-names.pl;h=35bd6ed84326f16ca6ffbdd7e99c8fa1b6a7cf1d;hb=c130dd8ea4d09cb708aac9e41bd25c2f5fa7ea38;hp=d413a045cc450da934e9b2a76833859b3881eeea;hpb=db3758923b4db690feb6ca64562d21cc3d1f3abe;p=oweals%2Fopenssl.git diff --git a/util/extract-names.pl b/util/extract-names.pl index d413a045cc..35bd6ed843 100644 --- a/util/extract-names.pl +++ b/util/extract-names.pl @@ -9,8 +9,12 @@ while() { } elsif ($name) { if (/ - /) { s/ - .*//; - s/[ \t,]+/ /g; - push @words, split ' '; + s/,\s+/,/g; + s/\s+,/,/g; + s/^\s+//g; + s/\s+$//g; + s/\s/_/g; + push @words, split ','; } } if (/^=head1 *NAME *$/) {