Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(curriculum): prevent passing in case of <img> element not closed #54644

Merged
merged 5 commits into from May 6, 2024

Conversation

zxc-w
Copy link
Contributor

@zxc-w zxc-w commented May 3, 2024

Checklist:

Closes #54642

@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label May 3, 2024
@huyenltnguyen huyenltnguyen added the status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP label May 3, 2024
zxc-w and others added 3 commits May 3, 2024 22:43
…n-html-by-building-a-cat-photo-app/5dc24073f86c76b9248c6ebb.md

Co-authored-by: Huyen Nguyen <[email protected]>
…n-html-by-building-a-cat-photo-app/5dc24073f86c76b9248c6ebb.md

Co-authored-by: Huyen Nguyen <[email protected]>
@huyenltnguyen huyenltnguyen added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. and removed status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP labels May 6, 2024
Copy link
Contributor

@Dario-DC Dario-DC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@Dario-DC Dario-DC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just realized that it doesn't take into account single quotes. Should we allow them? @huyenltnguyen

@huyenltnguyen
Copy link
Member

@Dario-DC That's a good catch!

I was focusing on the /> check so I missed it. I think the test should be loosen to allow single quotes usage.


@zxc-w Would you mind updating the regex to allow single quotes? (It's okay if you don't want to make further changes, we are happy to help with that, since this is a slight scope creep 🙂)

@huyenltnguyen huyenltnguyen added status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP and removed status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. labels May 6, 2024
@zxc-w
Copy link
Contributor Author

zxc-w commented May 6, 2024

@huyenltnguyen sure, I was just waiting to see if I should update it or not.

@Dario-DC Dario-DC merged commit 7606a05 into freeCodeCamp:main May 6, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting update To be applied to PR if a maintainer/reviewer has left a feedback and follow up is needed from OP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The test passes even though the syntax is not correct | Cat Photo App step-8
3 participants