Skip to content

Commit cd94560

Browse files
fix(curriculum): allow both single and double quotes in fcc Forum Leaderboard lab (freeCodeCamp#60300)
1 parent 9e61f27 commit cd94560

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

curriculum/challenges/english/25-front-end-development/lab-fcc-forum-leaderboard/673c91f0b934834bc4a3ecc2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ const users = [
318318
const actual = avatars(posters, users);
319319
const matches = actual.match(/<\s*img\s+.+?>/g);
320320

321-
assert.match(matches[0], /alt="Quincy Larson"/);
322-
assert.match(matches[1], /alt="Jessica Wilkins"/);
323-
assert.match(matches[2], /alt="Ilenia"/);
321+
assert.match(matches[0], /alt=('|")Quincy Larson\1/);
322+
assert.match(matches[1], /alt=('|")Jessica Wilkins\1/);
323+
assert.match(matches[2], /alt=('|")Ilenia\1/);
324324
```
325325

326326
The `avatars` function should set each avatar's size by accessing the `avatar_template` property and replacing `{size}` with `30`.
@@ -390,15 +390,15 @@ const matches = actual.match(/<\s*img\s+.+?>/g);
390390

391391
assert.match(
392392
matches[0],
393-
/src="https:\/\/sea1\.discourse-cdn\.com\/freecodecamp\/user_avatar\/forum\.freecodecamp\.org\/quincylarson\/30\/212400_2\.png"/
393+
/src=('|")https:\/\/sea1\.discourse-cdn\.com\/freecodecamp\/user_avatar\/forum\.freecodecamp\.org\/quincylarson\/30\/212400_2\.png\1/
394394
);
395395
assert.match(
396396
matches[1],
397-
/src="https:\/\/sea1\.discourse-cdn\.com\/freecodecamp\/user_avatar\/forum\.freecodecamp\.org\/jwilkins\.oboe\/30\/179497_2\.png"/
397+
/src=('|")https:\/\/sea1\.discourse-cdn\.com\/freecodecamp\/user_avatar\/forum\.freecodecamp\.org\/jwilkins\.oboe\/30\/179497_2\.png\1/
398398
);
399399
assert.match(
400400
matches[2],
401-
/src="https:\/\/sea1\.discourse-cdn\.com\/freecodecamp\/user_avatar\/forum\.freecodecamp\.org\/ilenia\/30\/270648_2\.png"/
401+
/src=('|")https:\/\/sea1\.discourse-cdn\.com\/freecodecamp\/user_avatar\/forum\.freecodecamp\.org\/ilenia\/30\/270648_2\.png\1/
402402
);
403403
```
404404

0 commit comments

Comments
 (0)