From 579e7989241accf28828f218679da2131e449900 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 5 Aug 2017 08:32:32 -0700 Subject: [PATCH] =?utf8?q?include=20non-breaking=20spaces=20in=20pheader?= =?utf8?q?=20regex=20for=20old=20perl=20(=E2=89=A45.18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scripts/process | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/process b/scripts/process index 228d28a..38e4f90 100755 --- a/scripts/process +++ b/scripts/process @@ -225,7 +225,10 @@ for my $phline (@bodylines) # Fixes #488554 $phline =~ s/\xef\xbb\xbf//g; $phline =~ s/\N{U+FEFF}//g; - last if $phline !~ m/^([\w-]+):\s*(\S.*)/; + last if $phline !~ m/^([\w-]+): # psuedoheader + (?:\s|\N{U+00A0})* # zero or more spaces, including + # non-breaking space + (\S.*)/x; # pseudoheader value my ($fn, $fv) = ($1, $2); $fv =~ s/\s*$//; # pluralize tag/usertag -- 2.39.2