fix(curriculum): update test regex to allow whitespaces (#47150)
* Added spacing fix to catch end of line spaces * allow for spaces before "("pull/47216/head
parent
41e85ef2bb
commit
87f0f75d9e
|
@ -33,7 +33,7 @@ Your promise should receive a function with `resolve` and `reject` as parameters
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
code.match(
|
code.match(
|
||||||
/Promise\(\s*(function\s*\(\s*resolve\s*,\s*reject\s*\)\s*{|\(\s*resolve\s*,\s*reject\s*\)\s*=>\s*{)[^}]*}/g
|
/Promise\s*\(\s*(function\s*\(\s*resolve\s*,\s*reject\s*\)\s*{|\(\s*resolve\s*,\s*reject\s*\)\s*=>\s*{)[^}]*}/g
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue