fix : replaced test cases' string to make more sense (#36170)
This commit is contained in:
parent
2da9d631ef
commit
c1d3817732
@ -47,9 +47,9 @@ tests:
|
||||
<div id='js-seed'>
|
||||
|
||||
```js
|
||||
let numString = "Your sandwich will be $5.00";
|
||||
let movieName = "2001: A Space Odyssey";
|
||||
let noNumRegex = /change/; // Change this line
|
||||
let result = numString.match(noNumRegex).length;
|
||||
let result = movieName.match(noNumRegex).length;
|
||||
```
|
||||
|
||||
</div>
|
||||
@ -62,8 +62,8 @@ let result = numString.match(noNumRegex).length;
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
let numString = "Your sandwich will be $5.00";
|
||||
let movieName = "2001: A Space Odyssey";
|
||||
let noNumRegex = /\D/g; // Change this line
|
||||
let result = numString.match(noNumRegex).length;
|
||||
let result = movieName.match(noNumRegex).length;
|
||||
```
|
||||
</section>
|
||||
|
@ -47,9 +47,9 @@ tests:
|
||||
<div id='js-seed'>
|
||||
|
||||
```js
|
||||
let numString = "Your sandwich will be $5.00";
|
||||
let movieName = "2001: A Space Odyssey";
|
||||
let numRegex = /change/; // Change this line
|
||||
let result = numString.match(numRegex).length;
|
||||
let result = movieName.match(numRegex).length;
|
||||
```
|
||||
|
||||
</div>
|
||||
@ -62,9 +62,9 @@ let result = numString.match(numRegex).length;
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
let numString = "Your sandwich will be $5.00";
|
||||
let movieName = "2001: A Space Odyssey";
|
||||
let numRegex = /\d/g; // Change this line
|
||||
let result = numString.match(numRegex).length;
|
||||
let result = movieName.match(numRegex).length;
|
||||
|
||||
```
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user