Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marco Ratto
dynare
Commits
3859ea0d
Verified
Commit
3859ea0d
authored
Feb 26, 2021
by
Stéphane Adjemian
Browse files
Fix read_key_value_string if commas are followed by spaces.
parent
de0b9c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/read_key_value_string.m
View file @
3859ea0d
...
...
@@ -4,7 +4,7 @@ function c = read_key_value_string(s)
% estimation command) into a cell (first column for the option name ans second column for the
% option value).
% Copyright
(C)
2011-201
7
Dynare Team
% Copyright
©
2011-20
2
1 Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -21,6 +21,9 @@ function c = read_key_value_string(s)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Remove unnecessary spaces after commas.
s
=
regexprep
(
s
,
',\s*'
,
','
);
i_opening_bracket
=
strfind
(
s
,
'('
);
i_closing_bracket
=
strfind
(
s
,
')'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment