We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc4545c commit b632befCopy full SHA for b632bef
src/quantifiers/repeat.ts
@@ -5,11 +5,11 @@ export function compileRepeat(
5
config: RepeatConfig,
6
compiledChildren: string
7
): string {
8
- if ('count' in config && typeof config.count === 'number') {
+ if ('count' in config) {
9
return `${wrapGroup(compiledChildren)}{${config.count}}`;
10
}
11
12
- if ('min' in config && typeof config.min === 'number') {
+ if ('min' in config) {
13
return `${wrapGroup(compiledChildren)}{${config.min},${config?.max ?? ''}}`;
14
15
0 commit comments