題目說明:
函式帶入字串判斷有幾個母音(a,e,i,o,u)
code
export class Kata {
static getCount(str: string): number {
//code
const lowerCaseStr = str.trim().toLowerCase();
const regex = /[aeiou]/g;
const matches = lowerCaseStr.match(regex);
if (matches) {
return matches.length;
} else {
return 0;
}
}
}

![DEC 14 2023 PROCL-5: User does not have permission to perform a local registry operation on this key. Authentication error [User [root] [已解決]](https://static.coderbridge.com/images/covers/default-post-cover-2.jpg)
![[Day 03] - Vault 的基本操作](https://static.coderbridge.com/images/covers/default-post-cover-3.jpg)