fix : replaced test cases' string to make more sense (#36170)

This commit is contained in:
Siddhant Shekhar 2019-06-07 04:23:31 +05:30 committed by Randell Dawson
parent 2da9d631ef
commit c1d3817732
2 changed files with 8 additions and 8 deletions

View File

@ -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>

View File

@ -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>