From c1d38177324524f4054a93c2bf32a1660ce56667 Mon Sep 17 00:00:00 2001 From: Siddhant Shekhar Date: Fri, 7 Jun 2019 04:23:31 +0530 Subject: [PATCH] fix : replaced test cases' string to make more sense (#36170) --- .../regular-expressions/match-all-non-numbers.english.md | 8 ++++---- .../regular-expressions/match-all-numbers.english.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-non-numbers.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-non-numbers.english.md index 5363f7cd94..aa3b168dee 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-non-numbers.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-non-numbers.english.md @@ -47,9 +47,9 @@ tests:
```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; ```
@@ -62,8 +62,8 @@ let result = numString.match(noNumRegex).length;
```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; ```
diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-numbers.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-numbers.english.md index 211254b939..fb90adcd6f 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-numbers.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-all-numbers.english.md @@ -47,9 +47,9 @@ tests:
```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; ```
@@ -62,9 +62,9 @@ let result = numString.match(numRegex).length;
```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; ```