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:
grets311
2019-03-29 04:55:24 -04:00
committed by Manish Giri
parent 6b589506e9
commit 3ece63f044

View File

@ -11,6 +11,6 @@ title: Positive and Negative Lookahead
```javascript
let sampleWord = "astronaut";
let pwRegex = /(?=\w{5,})(?=\D*\d{2})/;
let pwRegex = /(?=\w{6,})(?=\D*\d{2})/;
let result = pwRegex.test(sampleWord);
```