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
pull/43548/head
James Geer 2021-09-23 19:25:50 +01:00 committed by GitHub
parent 972c10a33d
commit 77b8405a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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`. The `div` should have a `margin` set to `auto`.
```js ```js
assert(code.match(/margin:\s*?auto;/g)); assert(new __helpers.CSSHelp(document).getStyle('div')?.margin === 'auto');
``` ```
# --seed-- # --seed--