Skip to content

Commit 42120f0

Browse files
committed
Merge pull request victorjonsson#191 from indrimuska/master
Fix date formats without divider
2 parents edaeb17 + c694777 commit 42120f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form-validator/jquery.form-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@
933933
parseDate : function(val, dateFormat) {
934934
var divider = dateFormat.replace(/[a-zA-Z]/gi, '').substring(0,1),
935935
regexp = '^',
936-
formatParts = dateFormat.split(divider),
936+
formatParts = dateFormat.split(divider || null),
937937
matches, day, month, year;
938938

939939
$.each(formatParts, function(i, part) {

0 commit comments

Comments
 (0)