xachary
2024-02-11 236ddf3471a7851ff6541f5709e9cbb6105b58f7
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);
}