send-email: windows drive prefix (e.g. C:) appears only at the beginning

Tighten the regexp used in the "file_name_is_absolute" replacement used on msys to declare that only "[a-zA-Z]:" that appear at the very beginning is a path with a drive-prefix. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Apr 23, 2014 at 09:37 UTC f24ecf5998a6c913ea6111dc0650c91165149264
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -1118,7 +1118,7 @@ sub file_name_is_absolute {
1118
1119 # msys does not grok DOS drive-prefixes
1120 if ($^O eq 'msys') {
1121 - return ($path =~ m#^/# || $path =~ m#[a-zA-Z]\:#)
1121 + return ($path =~ m#^/# || $path =~ m#^[a-zA-Z]\:#)
1122 }
1123
1124 require File::Spec::Functions;