fix(curriculum): update regex to account for bracket notation (#42881)
* fix: update regex to account for bracket notation fix minor bug in regex referring to literal dots with a dot closes #42877 * account for both single and double quotes Co-authored-by: awu43 <46470763+awu43@users.noreply.github.com> * fix: make case sensitive Co-authored-by: Ilenia <nethleen@gmail.com> Co-authored-by: awu43 <46470763+awu43@users.noreply.github.com> Co-authored-by: Ilenia <nethleen@gmail.com>
This commit is contained in:
@ -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/gi,
|
/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