diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-01-02 14:57:09 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-01-08 14:27:11 +0000 |
commit | 07f8dbb095e4905d2d43e1527ce5616d047a3ae9 (patch) | |
tree | b9acdbc59b51eb38783e05b715f0624aff6186c1 | |
parent | 2a269f42b2a3cb0ff71d101d044540e6c515669b (diff) |
sanitizer: recognize nobiliary particle 'du' in realname check
Task-number: QTQAINFRA-1672
Change-Id: I4bc20293b566dd02ac8ece3a55e2364df53a4baa
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 825ccba..d793145 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -239,7 +239,7 @@ sub check_email($$$$) # - contain no spaces # - have words starting with lowercase (except for common Nobiliary particles) # - have single letters not followed by a dot or apostrophe - if (!defined($good_names{$real}) && ($real !~ / / || $real =~ /\b(?!da|de|d'|la|van|von)\p{Ll}|\b\pL([^.'\pL]|$)/)) { + if (!defined($good_names{$real}) && ($real !~ / / || $real =~ /\b(?!da|de|du|d'|la|van|von)\p{Ll}|\b\pL([^.'\pL]|$)/)) { if ($gerrit_rest) { do_complain($line, "Suspicious real name", "email"); } else { |