From 0cea1269c60d48c868d94734feb58bba39afe2d4 Mon Sep 17 00:00:00 2001 From: Bill Allombert Date: Tue, 5 Nov 2024 18:06:08 +0100 Subject: [PATCH] Fix typo psuedoheader -> pseudoheader --- Debbugs/Config.pm | 2 +- debian/changelog | 2 +- scripts/process | 4 ++-- t/06_mail_handling.t | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Debbugs/Config.pm b/Debbugs/Config.pm index a02072c6..a9d79f0a 100644 --- a/Debbugs/Config.pm +++ b/Debbugs/Config.pm @@ -614,7 +614,7 @@ set_default(\%config,'package_version_re', =item default_package This is the name of the default package. If set, bugs assigned to -packages without a maintainer and bugs missing a Package: psuedoheader +packages without a maintainer and bugs missing a Package: pseudoheader will be assigned to this package instead. Defaults to unset, which is the traditional debbugs behavoir diff --git a/debian/changelog b/debian/changelog index 0e3917e2..5ce51910 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ debbugs (2.6.1) unstable; urgency=medium - * Add support for a Done: psuedoheader (closes: #950133) + * Add support for a Done: pseudoheader (closes: #950133) * Fix unescaped From (closes: #983847) * Actually return message/rfc822 when there is a single message instead of mbox (closes: #1009181) diff --git a/scripts/process b/scripts/process index 6e0a247f..0bb57591 100755 --- a/scripts/process +++ b/scripts/process @@ -222,7 +222,7 @@ if (@bodylines and $bodylines[0] =~ /^-----BEGIN PGP SIGNED/) { map { s/^- // } @bodylines; } -#psuedoheaders +#pseudoheaders my %pheader; my @control_bits; my @usertag_bits; @@ -233,7 +233,7 @@ for my $phline (@bodylines) # Fixes #488554 $phline =~ s/\xef\xbb\xbf//g; $phline =~ s/\N{U+FEFF}//g; - last if $phline !~ m/^([\w-]+): # psuedoheader + last if $phline !~ m/^([\w-]+): # pseudoheader (?:\s|\N{U+00A0})* # zero or more spaces, including # non-breaking space (\S.*)/x; # pseudoheader value diff --git a/t/06_mail_handling.t b/t/06_mail_handling.t index 2f8f452d..0501c937 100644 --- a/t/06_mail_handling.t +++ b/t/06_mail_handling.t @@ -113,7 +113,7 @@ my $status = read_bug(bug=>1); ok($status->{subject} eq 'new title','bug 1 retitled'); ok($status->{severity} eq 'wishlist','bug 1 wishlisted'); -# now check to see if we can close a bug using a psuedoheader done +# now check to see if we can close a bug using a pseudoheader done send_message(to => '1-done@bugs.something', headers => [To => 'control@bugs.something', From => 'foo@bugs.something', -- 2.39.5