Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Utils/Shared/filesepStandard.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
idxs = [];
k = find(pathname0=='\' | pathname0=='/');
for ii = 1:length(k)
if (ii>1) && (k(ii) == k(ii-1)+1)
if (ii>1) && (k(ii) == k(ii-1)+1) && (k(ii) > 2)
% adjacent two values are same, and the values are not the
% first two characters (for paths like \\ad\eng\ ...)
idxs = [idxs, k(ii)]; %#ok<AGROW>
continue;
end
Expand Down
5 changes: 3 additions & 2 deletions Utils/submodules/filesepStandard_startup.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@
idxs = [];
k = find(pathname0=='\' | pathname0=='/');
for ii = 1:length(k)
if (ii>1) && (k(ii) == k(ii-1)+1)
if (ii>1) && (k(ii) == k(ii-1)+1) && (k(ii) > 2)
% adjacent two values are same, and the values are not the
% first two characters (for paths like \\ad\eng\ ...)
idxs = [idxs, k(ii)]; %#ok<AGROW>
continue;
end
pathname0(k(ii)) = '/';
end
Expand Down
5 changes: 3 additions & 2 deletions setpaths.m
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,10 @@ function printMethod(msg)
idxs = [];
k = find(pathname0=='\' | pathname0=='/');
for ii = 1:length(k)
if (ii>1) && (k(ii) == k(ii-1)+1)
if (ii>1) && (k(ii) == k(ii-1)+1) && (k(ii) > 2)
% adjacent two values are same, and the values are not the
% first two characters (for paths like \\ad\eng\ ...)
idxs = [idxs, k(ii)]; %#ok<AGROW>
continue;
end
pathname0(k(ii)) = '/';
end
Expand Down