fix(curriculum): step 54 math.pow too strict (#55793)

Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
Gagan Bhullar
2024-08-13 01:53:44 -06:00
committed by GitHub
parent e61e1f9276
commit f91b8284bf
@@ -43,7 +43,7 @@ assert.match(getStandardDeviation.toString(), /standardDeviation\s*=\s*Math\.pow
Your `Math.pow()` function should have a base of `variance` and an exponent of `1/2`.
```js
assert.match(getStandardDeviation.toString(), /standardDeviation\s*=\s*Math\.pow\(\s*variance\s*,\s*1\s*\/\s*2\s*\)/);
assert.match(getStandardDeviation.toString(), /standardDeviation\s*=\s*Math\.pow\(\s*variance\s*,\s*(\(\s*1\s*\/\s*2\s*\)|1\s*\/\s*2|0\.5|\.5)\s*\);?\s*\}/);
```
# --seed--