fix(curriculum): bracket notation regex (#43062)
This commit is contained in:
@@ -88,12 +88,12 @@ GitHub strategy should be setup correctly thus far.
|
|||||||
);
|
);
|
||||||
assert.match(
|
assert.match(
|
||||||
data,
|
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'
|
'You should use process.env.GITHUB_CLIENT_SECRET'
|
||||||
);
|
);
|
||||||
assert.match(
|
assert.match(
|
||||||
data,
|
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'
|
'You should use process.env.GITHUB_CLIENT_ID'
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -107,8 +107,8 @@ GitHub strategy should be setup correctly thus far.
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
/**
|
/**
|
||||||
Backend challenges don't need solutions,
|
Backend challenges don't need solutions,
|
||||||
because they would need to be tested against a full working project.
|
because they would need to be tested against a full working project.
|
||||||
Please check our contributing guidelines to learn more.
|
Please check our contributing guidelines to learn more.
|
||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user