Skip to content

Commit a38c3ad

Browse files
JAMSUPREMEmattbaileyuk
authored andcommittedNov 2, 2021
Positive n
1 parent 39fdb66 commit a38c3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/datetime.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ const dateTime = (function () {
10281028
} else { // type === 'integer'
10291029
matcher.type = 'integer';
10301030
const isUpper = formatSpec.case === tcase.UPPER;
1031-
const occurrences = formatSpec.n && formatSpec.n > 1 ? `{${formatSpec.n}}` : '+';
1031+
const occurrences = formatSpec.n && formatSpec.n > 0 ? `{${formatSpec.n}}` : '+';
10321032
switch (formatSpec.primary) {
10331033
case formats.LETTERS:
10341034
matcher.regex = isUpper ? '[A-Z]+' : '[a-z]+';

0 commit comments

Comments
 (0)
Please sign in to comment.