Skip to content

Commit

Permalink
Update filesepStandard.m
Browse files Browse the repository at this point in the history
allowing for double slash at the beginning
  • Loading branch information
kk1995 committed May 21, 2024
1 parent b693455 commit 798a758
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 798a758

Please sign in to comment.