We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39fdb66 commit a38c3adCopy full SHA for a38c3ad
src/datetime.js
@@ -1028,7 +1028,7 @@ const dateTime = (function () {
1028
} else { // type === 'integer'
1029
matcher.type = 'integer';
1030
const isUpper = formatSpec.case === tcase.UPPER;
1031
- const occurrences = formatSpec.n && formatSpec.n > 1 ? `{${formatSpec.n}}` : '+';
+ const occurrences = formatSpec.n && formatSpec.n > 0 ? `{${formatSpec.n}}` : '+';
1032
switch (formatSpec.primary) {
1033
case formats.LETTERS:
1034
matcher.regex = isUpper ? '[A-Z]+' : '[a-z]+';
0 commit comments