From 77b8405a31f2bc89546c3303fad760a6c1ca99dc Mon Sep 17 00:00:00 2001 From: James Geer <49303900+jamesgeer@users.noreply.github.com> Date: Thu, 23 Sep 2021 19:25:50 +0100 Subject: [PATCH] fix(curriculum): allow optional final css semi-colon (#43545) * fix for issue: #43536, final css property optional semi-colon * accidentally left a "y" at the end of the sentence * replaced regex with CSSHelp * removed trailing white-space --- .../center-an-element-horizontally-using-the-margin-property.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md index 0fdf5468323..c4ec2289621 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md @@ -22,7 +22,7 @@ Center the `div` on the page by adding a `margin` property with a value of `auto The `div` should have a `margin` set to `auto`. ```js -assert(code.match(/margin:\s*?auto;/g)); +assert(new __helpers.CSSHelp(document).getStyle('div')?.margin === 'auto'); ``` # --seed--