Skip to content

Commit

Permalink
fix solution
Browse files Browse the repository at this point in the history
  • Loading branch information
MariiaMonakhova committed Aug 13, 2023
1 parent 372c481 commit 7503109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function playGame() {
return;
}

if (guess.match(/[a-zA-Z]/g)) {
if (guess.match(/[^\d]/u)) {
console.log('Please enter a correct number');
playGame();

Expand Down

0 comments on commit 7503109

Please sign in to comment.