Skip to content

Commit fde929b

Browse files
fix(curriculum): make semicolon optional for test 8 of lab-password-generator (freeCodeCamp#61458)
1 parent 9963d69 commit fde929b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

curriculum/challenges/english/25-front-end-development/lab-password-generator/66f53dc2c5bd6a11d6c3282f.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const length2 = 10;
8282
const password3 = generatePassword(length2);
8383
assert.lengthOf(password3, length2);
8484
assert.equal(password3.length, generatePassword(length2).length);
85-
assert.match(__helpers.removeJSComments(code), /(let|const|var)\s+password\s*=\s*generatePassword\(\d+\)\;/);
85+
assert.match(__helpers.removeJSComments(code), /(let|const|var)\s+password\s*=\s*generatePassword\(\d+\)\;?/);
8686
```
8787

8888
You should log a single string combining `Generated password:` and the `password` separated by a single space using `+` or a template literal.

0 commit comments

Comments
 (0)