From: Ian Jackson Date: Mon, 1 Oct 2018 02:22:15 +0000 (+0100) Subject: i18n: i18n-diff-auditor: fix new invented here doc X-Git-Tag: archive/debian/7.0_pre1~38 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d4d32495578240e0064ef1d3cd339fd1fcc5dbdb;p=dgit.git i18n: i18n-diff-auditor: fix new invented here doc Signed-off-by: Ian Jackson --- diff --git a/i18n-diff-auditor b/i18n-diff-auditor index 13454197..17bd81ce 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -145,8 +145,9 @@ sub semiparse ($) { }{ $1 }xe) { $o[$#o]{V} = $2; } else { - s{ \n (.*) }{ \n }s; - $o[$#o]{V} = $1; + m{^.*\n} or confess; + $_ = $&; + $o[$#o]{V} = $'; $o[$#o]{Invented} = 1; } } elsif (s{^ (["'])( (?: [^\\'"]