Skip to content

Commit 575a744

Browse files
committed
is_absolute: any size array
1 parent 272d279 commit 575a744

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

+stdlib/is_absolute.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@
55
% * non-Windows, absolute paths must start with a slash
66

77
function y = is_absolute(p)
8-
arguments
9-
p {mustBeTextScalar}
10-
end
11-
12-
% not Octave is_absolute_filename() because this is a stricter check for "c:" false
138

149
y = ~stdlib.strempty(stdlib.root_dir(p));
1510

1611
if ispc()
17-
y = y && ~stdlib.strempty(stdlib.root_name(p));
12+
y(y) = ~stdlib.strempty(stdlib.root_name(p(y)));
1813
end
1914

2015
end

0 commit comments

Comments
 (0)