comments: fix misuses of "nor"
Signed-off-by: Justin Lebar <jlebar@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
e34b272344
commit
01689909eb
@ -1490,7 +1490,7 @@ sub is_valid_pathname {
|
||||
my $input = shift;
|
||||
|
||||
return undef unless defined $input;
|
||||
# no '.' or '..' as elements of path, i.e. no '.' nor '..'
|
||||
# no '.' or '..' as elements of path, i.e. no '.' or '..'
|
||||
# at the beginning, at the end, and between slashes.
|
||||
# also this catches doubled slashes
|
||||
if ($input =~ m!(^|/)(|\.|\.\.)(/|$)!) {
|
||||
|
Reference in New Issue
Block a user