Skip to content

Commit

Permalink
More optional whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Nov 21, 2023
1 parent 80043d4 commit 40e5377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/media-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class ParsedMinWidth {
static *Parser() {
yield optionalWhitespace;
yield '(';
yield optionalWhitespace;
yield 'min-width:';
yield optionalWhitespace;
const value: ParsedType<typeof ParseInt> = yield ParseInt;
Expand Down Expand Up @@ -118,6 +119,7 @@ class ParsedOrientation {
static *Parser() {
yield optionalWhitespace;
yield '(';
yield optionalWhitespace;
yield 'orientation:';
yield optionalWhitespace;
const orientation: 'portrait' | 'landscape' = yield [
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 40e5377

Please sign in to comment.