diff --git a/src/modifiers/QuantityModifier.ts b/src/modifiers/QuantityModifier.ts index b4b5b05..bd29c33 100644 --- a/src/modifiers/QuantityModifier.ts +++ b/src/modifiers/QuantityModifier.ts @@ -26,7 +26,6 @@ export default abstract class QuantityModifier implements RegExpModifier { if (NOT_QUANTIFIABLE.has(regExp)) { throw new Error('The provided token is not quantifiable'); } - // todo: only wrap in group if necessary return [this.quantify(wrapIfNeeded(regExp)) + (this.lazy ? '?' : '')]; }