Update solution to meet exercise criteria (#34583)
The exercise requires a match at greater than 5 characters however the solution has a match occurring at a minimum of 5. Request to update 5 to a 6.
This commit is contained in:
@ -11,6 +11,6 @@ title: Positive and Negative Lookahead
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
let sampleWord = "astronaut";
|
let sampleWord = "astronaut";
|
||||||
let pwRegex = /(?=\w{5,})(?=\D*\d{2})/;
|
let pwRegex = /(?=\w{6,})(?=\D*\d{2})/;
|
||||||
let result = pwRegex.test(sampleWord);
|
let result = pwRegex.test(sampleWord);
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user