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