X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft6000lib.sh;h=c0baaa536079b1213d83bbf234ac688567c95237;hb=adf59ec127f447aa83c84f9dbe2ae4e6417f3760;hp=180633e1e0e37c59eeaa571ad7f7b292f35415ec;hpb=b8de7f764e1a9f6e8dfb587a6145906394fa607d;p=git.git diff --git a/t/t6000lib.sh b/t/t6000lib.sh index 180633e1e..c0baaa536 100755 --- a/t/t6000lib.sh +++ b/t/t6000lib.sh @@ -97,7 +97,13 @@ check_output() # from front and back. name_from_description() { - tr "'" '-' | tr '~`!@#$%^&*()_+={}[]|\;:"<>,/? ' '-' | tr -s '-' | tr '[A-Z]' '[a-z]' | sed "s/^-*//;s/-*\$//" + perl -pe ' + s/[^A-Za-z0-9.]/-/g; + s/-+/-/g; + s/-$//; + s/^-//; + y/A-Z/a-z/; + ' }