mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): allow optional semicolon in Card component return statement (#61055)
Co-authored-by: Hassan Waqar <hassanwaqar@ITs-MacBook-Pro.local>
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ Your `Card` component should return an empty string.
|
||||
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*\)/);
|
||||
assert.match(functionDefinition, /\s*{\s*return\s*\(\s*(''|""|``)\s*\)\s*;?\s*}|\s*=>\s*\(\s*(''|""|``)\s*\)/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user