From 40e53773e31cad070aef65366816fd9903e24c82 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Tue, 21 Nov 2023 23:18:43 +1100 Subject: [PATCH] More optional whitespace --- src/media-query.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/media-query.test.ts b/src/media-query.test.ts index 18e3707..7e663c8 100644 --- a/src/media-query.test.ts +++ b/src/media-query.test.ts @@ -91,6 +91,7 @@ class ParsedMinWidth { static *Parser() { yield optionalWhitespace; yield '('; + yield optionalWhitespace; yield 'min-width:'; yield optionalWhitespace; const value: ParsedType = yield ParseInt; @@ -118,6 +119,7 @@ class ParsedOrientation { static *Parser() { yield optionalWhitespace; yield '('; + yield optionalWhitespace; yield 'orientation:'; yield optionalWhitespace; const orientation: 'portrait' | 'landscape' = yield [ @@ -211,7 +213,6 @@ class ParsedMediaCondition { static *Parser() { yield optionalWhitespace; const first: ParsedMediaInParens = yield parsedMediaInParens; - // const conditions: ParsedMediaAnds | undefined = yield optional(ParsedMediaAnds.Parser); const conditions: ParsedMediaAnds | '' = yield [ParsedMediaAnds.Parser, '']; if (conditions === '') { return first;