From 12c11eba8cf86c8212bb6f55bb02b6df10d03307 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Date: Tue, 3 Feb 2015 16:55:55 +0100 Subject: [PATCH] remove regex /u modifier it's pointless (the doc says it's basically internal) and breaks msysgit's perl. Change-Id: Ia2d728dce57d6a447a720622a716c5deab0e7595 Reviewed-by: Orgad Shaneh <orgads@gmail.com> --- git-hooks/sanitize-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 909e98f..c9664ef 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -208,7 +208,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(?!de|d'|van|von)\p{Ll}|\b\pL([^.'\pL]|$)/u)) { + if (!defined($good_names{$real}) && ($real !~ / / || $real =~ /\b(?!de|d'|van|von)\p{Ll}|\b\pL([^.'\pL]|$)/)) { if ($gerrit_rest) { do_complain($line, "Suspicious real name", "email"); } else { -- GitLab