From a012e415498c354b753e3be7a84af5144dbeab2d Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Thu, 21 Dec 2017 12:01:14 +0100 Subject: [PATCH] pocheck.pl: checking for shortcuts using '&' '&&' is not a shorcut --- po/pocheck.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/pocheck.pl b/po/pocheck.pl index 44d077d6ca..d1bd5231bb 100755 --- a/po/pocheck.pl +++ b/po/pocheck.pl @@ -175,7 +175,7 @@ foreach my $pofilename ( @ARGV ) { if ($check_qt) { # Check for "&" shortcuts - if ( ( $msgid =~ m/&[^ ]/ ) != ( $msgstr =~ m/&[^ ]/ ) ) { + if ( ( $msgid =~ m/&[^ &]/ ) != ( $msgstr =~ m/&[^ &]/ ) ) { print "Line $linenum: Missing or unexpected Qt shortcut:\n '$msgid' => '$msgstr'\n" unless $only_total; ++$bad{"Bad Qt shortcuts"}; -- 2.39.5