fix(curriculum): bracket notation regex (#43062)

This commit is contained in:
awu43
2021-08-06 06:14:02 -07:00
committed by GitHub
parent eccc642d83
commit 62f67e96a4

View File

@@ -88,12 +88,12 @@ GitHub strategy should be setup correctly thus far.
);
assert.match(
data,
/process.env.GITHUB_CLIENT_SECRET/g,
/process\.env(\.GITHUB_CLIENT_SECRET|\[(?<q>"|')GITHUB_CLIENT_SECRET\k<q>\])/g,
'You should use process.env.GITHUB_CLIENT_SECRET'
);
assert.match(
data,
/process.env.GITHUB_CLIENT_ID/g,
/process\.env(\.GITHUB_CLIENT_ID|\[(?<q>"|')GITHUB_CLIENT_ID\k<q>\])/g,
'You should use process.env.GITHUB_CLIENT_ID'
);
},
@@ -107,8 +107,8 @@ GitHub strategy should be setup correctly thus far.
```js
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/
```