From 46e54e0f3893211452fae8f0faf7a937187f5d84 Mon Sep 17 00:00:00 2001 From: Ragini Pandey <99394366+ragini-pandey@users.noreply.github.com> Date: Wed, 25 Feb 2026 03:10:42 +0530 Subject: [PATCH] fix(curriculum): use code instead of editableContents for cafe menu CSS checks (#66027) --- .../5f3477aefa51bfc29327200b.md | 4 ++-- .../blocks/workshop-cafe-menu/5f3477aefa51bfc29327200b.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/blocks/learn-basic-css-by-building-a-cafe-menu/5f3477aefa51bfc29327200b.md b/curriculum/challenges/english/blocks/learn-basic-css-by-building-a-cafe-menu/5f3477aefa51bfc29327200b.md index c4e843e79c4..615ba2c0875 100644 --- a/curriculum/challenges/english/blocks/learn-basic-css-by-building-a-cafe-menu/5f3477aefa51bfc29327200b.md +++ b/curriculum/challenges/english/blocks/learn-basic-css-by-building-a-cafe-menu/5f3477aefa51bfc29327200b.md @@ -18,13 +18,13 @@ Start by rewriting the styles you have created into the `styles.css` file. Make Your `styles.css` file should have the `h1, h2, p` type selector. ```js -assert(editableContents.replace(/[\s\n]*/g, "").match(/(h1|h2|p),(h1|h2|p),(h1|h2|p){/)); +assert(code.slice(code.indexOf('')).replace(/[\s\n]*/g, "").match(__helpers.concatRegex(__helpers.permutateRegex(['h1', 'h2', 'p'], { elementsSeparator: ',' }), /{/))); ``` Your selector should set the `text-align` property to `center`. ```js -assert(editableContents.match(/text-align:\s*center;?/)); +assert(code.slice(code.indexOf('')).match(/text-align:\s*center;?/)); ``` Your code should not contain the `