From: Ian Jackson Date: Mon, 1 Oct 2018 01:44:00 +0000 (+0100) Subject: i18n: i18n-diff-auditor: fix here doc regexp X-Git-Tag: archive/debian/7.0_pre1~41 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=1c9a99297143d028936205973ebbeba47f5e8213;ds=inline i18n: i18n-diff-auditor: fix here doc regexp Signed-off-by: Ian Jackson --- diff --git a/i18n-diff-auditor b/i18n-diff-auditor index beb3a9ab..116b0f82 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -138,9 +138,9 @@ sub semiparse ($) { push @o, { T => 'heredoc', Q => $q, Delim => $d, E => $&, P => "<<$q$d$q" }; s{^ - ( .* \n ) - ( (?: (?! $d) .* \n )* ) - $d \n + ( .* \n ) + ( (?: (?! $d \n ) .* \n )*? ) + $d \n }{ $1 }xe or die "missing end of here doc $d\n"; $o[$#o]{V} = $2; } elsif (s{^ (["'])( (?: [^\\'"]