Skip to content
Snippets Groups Projects
Commit 9e31ef9c authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[refactoring-ode][Mission] Fixed a bug where paths would not be trimmed correctly

parent 98f475ae
Branches
No related tags found
1 merge request!3Refactoring ODE functions
......@@ -65,7 +65,7 @@ classdef Mission < Config
obj.configPath = fullfile(obj.currentPath, obj.name, 'config');
obj.dataPath = fullfile(obj.currentPath, obj.name, 'data');
obj.msaPath = trimPath( ...
fullfile(obj.currentPath, '..', '..', 'msa-toolkit') ...
fullfile(obj.currentPath, '..', '..', '..', 'msa-toolkit') ...
);
end
......
......@@ -13,7 +13,7 @@ out = fullfile(path); % Trims multiple separators characters
exp = ['\', filesep, '[^\', filesep,']+\', filesep,'\.\.'];
while ~trimmed
out = regexprep(out, exp, '');
out = regexprep(out, exp, '', 'once');
trimmed = ~logical(regexp(out, exp, 'once'));
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment