From: Ævar Arnfjörð Bjarmason Date: Thu, 30 Sep 2010 13:43:05 +0000 (+0000) Subject: send-email: is_rfc2047_quoted use qr// regexes X-Git-Tag: v1.7.4-rc0~160^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=49f73852c80ee681c179ee2eb76b1a792d7b1b22;p=git.git send-email: is_rfc2047_quoted use qr// regexes Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 036e4b425..189040923 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -852,8 +852,8 @@ sub quote_rfc2047 { sub is_rfc2047_quoted { my $s = shift; - my $token = '[^][()<>@,;:"\/?.= \000-\037\177-\377]+'; - my $encoded_text = '[!->@-~]+'; + my $token = qr/[^][()<>@,;:"\/?.= \000-\037\177-\377]+/; + my $encoded_text = qr/[!->@-~]+/; length($s) <= 75 && $s =~ m/^(?:"[[:ascii:]]*"|=\?$token\?$token\?$encoded_text\?=)$/o; }