From 43083f2c870e79910ef6d4788bf745a4cb39d0af Mon Sep 17 00:00:00 2001 From: kinjalvasita <87219567+kinjalvasita@users.noreply.github.com> Date: Thu, 15 Jul 2021 12:47:18 +0530 Subject: [PATCH] Update vowels.js --- exercises/strings/vowels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }