freeCodeCamp / curriculum

The freeCodeCamp curriculum and lesson editor
Creative Commons Attribution Share Alike 4.0 International
81 stars 124 forks source link

fix(challenges): fix flex direction row regex #261

Closed joshalling closed 6 years ago

joshalling commented 6 years ago

ISSUES CLOSED: #260

Description

I improved regex for this challenge a little bit by ensuring the flex-direction declarations are in the right rules while also removing the line number restriction.

I also thought about using jQuery in the tests, but that is not possible here because row is already the default value of flex-direction, so you could pass the challenge without doing anything.

Pre-Submission Checklist

Checklist:

Closes #260

scissorsneedfoodtoo commented 6 years ago

@joshalling, thank you for documenting this issue and submitting this fix! Checked it out and everything LGTM :+1: