Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : replace test cases' string to make more sense #36170

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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>
Expand All @@ -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>
Expand Up @@ -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>
Expand All @@ -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>