Skip to content

Commit b632bef

Browse files
committed
chore: remove not needed check
1 parent cc4545c commit b632bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/quantifiers/repeat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export function compileRepeat(
55
config: RepeatConfig,
66
compiledChildren: string
77
): string {
8-
if ('count' in config && typeof config.count === 'number') {
8+
if ('count' in config) {
99
return `${wrapGroup(compiledChildren)}{${config.count}}`;
1010
}
1111

12-
if ('min' in config && typeof config.min === 'number') {
12+
if ('min' in config) {
1313
return `${wrapGroup(compiledChildren)}{${config.min},${config?.max ?? ''}}`;
1414
}
1515

0 commit comments

Comments
 (0)