Commit 9c86168d authored by Houtan Bastani's avatar Houtan Bastani
Browse files

Revert "simplify check for ‘.’ in name"

This reverts commit a302b7af.
parent a302b7af
......@@ -99,7 +99,11 @@ end
% Testing if filename has more than one period (not allowed).
dot_location=(strfind(fname,'.'));
if length(dot_location) > 1 || dot_location == length(fname)
if length(dot_location)>1
error('DYNARE: Periods in filenames are only allowed for .mod or .dyn extensions')
end
if dot_location==length(fname)
error('DYNARE: Periods in filenames are only allowed for .mod or .dyn extensions')
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment