fix(curriculum): improve regex for advanced-node (#44407)
* Modify set-up-passport challenge test regex to accept space after secret * Accept any number of spaces Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
00541c71d5
commit
cd9be3c291
@ -111,7 +111,7 @@ Session and session secret should be correctly set up.
|
|||||||
(data) => {
|
(data) => {
|
||||||
assert.match(
|
assert.match(
|
||||||
data,
|
data,
|
||||||
/secret:( |)process\.env(\.SESSION_SECRET|\[(?<q>"|')SESSION_SECRET\k<q>\])/g,
|
/secret *: *process\.env(\.SESSION_SECRET|\[(?<q>"|')SESSION_SECRET\k<q>\])/g,
|
||||||
'Your express app should have express-session set up with your secret as process.env.SESSION_SECRET'
|
'Your express app should have express-session set up with your secret as process.env.SESSION_SECRET'
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user