diff --git a/exercises/strings/vowels.js b/exercises/strings/vowels.js index 0425beb..3cc2de7 100644 --- a/exercises/strings/vowels.js +++ b/exercises/strings/vowels.js @@ -24,6 +24,6 @@ function vowels(str) { // Solution using regexp function vowels(str) { - const matches = str.matches(/[aeiou]/gi); + const matches = str.match(/[aeiou]/gi); return matches ? matches.length : 0; }