From 4dd4f2ef20126b40f9c749de61677defebd68561 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 19 Jun 2025 07:51:17 +1200 Subject: [PATCH] fix(curriculum): return empty string in Reusable Profile Card Component (#60801) --- .../674ef11f75254548672d998c.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef11f75254548672d998c.md b/curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef11f75254548672d998c.md index 052765501c3..8e8568716a3 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef11f75254548672d998c.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-reusable-profile-card-component/674ef11f75254548672d998c.md @@ -16,7 +16,7 @@ Also, return a pair of parentheses with an empty string inside for now. # --hints-- -You should create and export a `Card` functional component. Don't forget to return an empty string inside it. +You should create and export a `Card` functional component. ```js assert.isFunction(window.index.Card); @@ -33,6 +33,15 @@ assert.match(functionDefinition, /\{[^{]*title[^{]*\}/); assert.match(functionDefinition, /\{[^{]*bio[^{]*\}/); ``` +Your `Card` component should return an empty string. + +```js +const functionRegex = __helpers.functionRegex("Card", null, { capture: true }); +const match = code.match(functionRegex); +const functionDefinition = match[0]; +assert.match(functionDefinition, /\s*{\s*return\s*\(\s*(''|""|``)\s*\)\s*}|\s*=>\s*\(\s*(''|""|``)\s*\)/); +``` + # --seed-- ## --seed-contents--