From 3863dba15266045f598312bb14306f4b43a3ca13 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 1 Oct 2018 00:42:22 +0100 Subject: [PATCH] i18n: i18n-diff-auditor: fix bra and ket regexps Signed-off-by: Ian Jackson --- i18n-diff-auditor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n-diff-auditor b/i18n-diff-auditor index 43e1c109..42ebe00d 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -144,9 +144,9 @@ sub semiparse ($) { Q => $q, V => $v}; } elsif (s{^$perlop_re|^\;}{}) { push @o, { T => 'op', E => $&, P => $& }; - } elsif (s/[[{(]//) { + } elsif (s/^[[{(]//) { push @o, { T => 'bra', E => $&, P => $& }; - } elsif (s/[]})]//) { + } elsif (s/^[]})]//) { push @o, { T => 'ket', E => $&, P => $& }; } elsif (s/^( [\$\@\%] )( \{ )//x) { push @o, { T => 'deref', E => $1, P => $1 }, -- 2.30.2