From d4d32495578240e0064ef1d3cd339fd1fcc5dbdb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 1 Oct 2018 03:22:15 +0100 Subject: [PATCH] i18n: i18n-diff-auditor: fix new invented here doc Signed-off-by: Ian Jackson --- i18n-diff-auditor | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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{^ (["'])( (?: [^\\'"] -- 2.30.2