From 766d5d168fd45482638c03c4f841227e6e963e33 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Thu, 8 Jul 2021 13:31:27 +0200 Subject: [PATCH] Fix global header exclusion regex Make the dot explicit in global header exclusion regex. Ensure that '.h' states in the end of file name and support paths. Amends 50b55b89f30d559bc262c0e81ef8a6beea39d183 Change-Id: I25b3d2fb54ed606a0b0806a10dbcb4ce1c65d2d8 Reviewed-by: Edward Welbourne --- libexec/syncqt.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/syncqt.pl b/libexec/syncqt.pl index f9ba844d1b..acdc469ba2 100755 --- a/libexec/syncqt.pl +++ b/libexec/syncqt.pl @@ -336,7 +336,7 @@ sub check_header { return if ($ignore_for_include_check{$header}); if ($public_header) { $header_skip_qt_begin_namespace_test = $header && - ($ignore_for_qt_begin_namespace_check{$header} || $header =~ /qt\w+global.h/); + ($ignore_for_qt_begin_namespace_check{$header} || $header =~ m,(^|/)qt\w+global\.h$,); } local $/ = "\x0a";