Skip to content

Commit

Permalink
Fix global header exclusion regex
Browse files Browse the repository at this point in the history
Make the dot explicit in global header exclusion regex.
Ensure that '.h' states in the end of file name and support
paths.

Amends 50b55b8

Change-Id: I25b3d2fb54ed606a0b0806a10dbcb4ce1c65d2d8
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
semlanik committed Jul 9, 2021
1 parent d804d21 commit 766d5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/syncqt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 766d5d1

Please sign in to comment.