diff --git a/form-validator/jquery.form-validator.js b/form-validator/jquery.form-validator.js index aab0a13..fda610a 100644 --- a/form-validator/jquery.form-validator.js +++ b/form-validator/jquery.form-validator.js @@ -908,7 +908,7 @@ parseDate : function(val, dateFormat) { var divider = dateFormat.replace(/[a-zA-Z]/gi, '').substring(0,1), regexp = '^', - formatParts = dateFormat.split(divider), + formatParts = dateFormat.split(divider || null), matches, day, month, year; $.each(formatParts, function(i, part) {