Skip to content

Commit c3750c8

Browse files
committed
root_dir: no need for pattern
1 parent 2694232 commit c3750c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

+stdlib/root_dir.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
p string
1414
end
1515

16-
sep = characterListPattern("/" + filesep);
17-
1816
r = repmat("", size(p));
1917

20-
i = startsWith(p, sep);
18+
i = startsWith(p, ["/", filesep]);
2119
r(i) = extractBefore(p(i), 2);
2220

2321
if ispc()

0 commit comments

Comments
 (0)