X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=util%2Fextract-names.pl;h=35bd6ed84326f16ca6ffbdd7e99c8fa1b6a7cf1d;hp=d413a045cc450da934e9b2a76833859b3881eeea;hb=52272327f3154cffa0ed479f6e4044f2210ab10e;hpb=db3758923b4db690feb6ca64562d21cc3d1f3abe 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 *$/) {