mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-05 21:04:28 +08:00
fix(curriculum): update raiseTo regex to support return type annotation in step 14 (#67392)
This commit is contained in:
parent
ca20dfd8b9
commit
e8c77cae3d
@ -24,7 +24,7 @@ Your `raiseTo` function should have two parameters, `base` and `exponent`.
|
||||
```js
|
||||
assert.match(
|
||||
code,
|
||||
/function\s+raiseTo\s*\(\s*base\s*(?::\s*number)?\s*,\s*exponent\s*(?::\s*number)?\s*\)\s*|(?:const|let)\s+raiseTo\s*=\s*\(\s*base\s*(?::\s*number)?\s*,\s*exponent\s*(?::\s*number)?\s*\)\s*=>/
|
||||
/function\s+raiseTo\s*\(\s*base\s*(?::\s*number)?\s*,\s*exponent\s*(?::\s*number)?\s*\)\s*|(?:const|let)\s+raiseTo\s*=\s*\(\s*base\s*(?::\s*number)?\s*,\s*exponent\s*(?::\s*number)?\s*\)\s*(?::\s*\w+\s*)?\s*=>/
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user