Fixed bug (month number 10 was missing).
parent
f4e32dbd6f
commit
5a1b5aaf73
|
@ -25,7 +25,7 @@ function b = ismonthly(str) % --*-- Unitary tests --*--
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
b = ~isempty(regexp(str,'^-?[0-9]*[Mm]([1-9]|1[12])$'));
|
b = ~isempty(regexp(str,'^-?[0-9]*[Mm]([1-9]|1[0-2])$'));
|
||||||
|
|
||||||
%@test:1
|
%@test:1
|
||||||
%$
|
%$
|
||||||
|
|
Loading…
Reference in New Issue