src/utils/is.ts @@ -65,3 +65,8 @@ const reg = /^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?/; return reg.test(path); } export function isPascalCase(str: string): boolean { const regex = /^[A-Z][A-Za-z]*$/; return regex.test(str); }