diff --git a/src/internal/core/index.ts b/src/internal/core/index.ts index 3387006..0a5bec1 100644 --- a/src/internal/core/index.ts +++ b/src/internal/core/index.ts @@ -316,7 +316,7 @@ export function notMatch(parser: Parser): Parser { * @returns A {@link Failure} object if `parserExcluded` succeeds, or if `parserIncluded` fails, and a {@link Success} object * otherwise. */ -export function difference(parserIncluded: Parser, parserExcluded: Parser): Parser { +export function difference(parserIncluded: Parser, parserExcluded: Parser): Parser { return new Parser((input, index, state) => { const exclude = parserExcluded.handler(input, index, state);