From f1db5cd2640ea455333aeeb61e4417c2aea2e23d Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 14 Nov 2017 14:09:15 +0100 Subject: [PATCH] dynare command line: fix bug introduced in c258bad2ab458bb5fe0428830499c1581eea9025 --- matlab/dynare.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/dynare.m b/matlab/dynare.m index cbd5f1ac0..c0ab33337 100644 --- a/matlab/dynare.m +++ b/matlab/dynare.m @@ -199,9 +199,9 @@ fclose(fid); if regexp(firstline, '\s*\/\/', 'once') == 1 firstline = regexprep(firstline, '\s*\/\/', ''); if ~isempty(regexp(firstline, '(^\s*\-\-\+\s*options:\s*)', 'once')) ... - && ~isempty(regexp(firstline, '(\s*\+\-\-(\s*\w*\s*)*$)', 'once')) + && ~isempty(regexp(firstline, '(\s*\+\-\-.*$)', 'once')) firstline = regexprep(firstline, '(^\s*\-\-\+\s*options:\s*)', ''); - firstline = regexprep(firstline, '(\s*\+\-\-(\s*\w*\s*)*$)', ''); + firstline = regexprep(firstline, '(\s*\+\-\-.*$)', ''); dynoption = strsplit(firstline, {' ', ','}); if isequal(nargin, 1) varargin = dynoption; -- GitLab