bug fix in check_valid_ver

time-shift
Houtan Bastani 2015-04-30 15:23:43 +02:00
parent a93e0157e4
commit 9cf352e471
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ function check_valid_ver(ver)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
test_ver = splitver(ver);
test_ver = strsplit(ver, {'.', '-'});
errmsg = 'check_valid_ver: the desired version must be in the proper format';
assert (length(test_ver) == 3 && ...
~isempty(str2double(test_ver{1})) && ...