Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

flex-direction row challenge regex bug #260

@joshalling

Description

@joshalling

Describe the bug

The flex-direction row challenge will not pass if you have other declarations above flex-direction.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Copy the following code into the header rule.
margin: 10px;
padding: 1px;
display: flex;
flex-direction: row;
  1. Click Run the Tests and see that the first rule doesn't pass when it should.
  2. Now if you remove the margin and padding rules then it passes.

Additional context

This is happening because the current regex only allows 3 lines of code between the selector and the flex-direction declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions