From 406543f8e30d0fb8f2905add5377d043a9c87113 Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期五, 07 三月 2025 16:04:36 +0800
Subject: [PATCH] 工具信息更新

---
 src/utils/is.ts |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/utils/is.ts b/src/utils/is.ts
index c2d74ac..81991ec 100644
--- a/src/utils/is.ts
+++ b/src/utils/is.ts
@@ -5,7 +5,7 @@
  * @version: 
  * @Date: 2024-06-17 14:51:26
  * @LastEditors: Ben Lin
- * @LastEditTime: 2024-07-15 20:37:07
+ * @LastEditTime: 2024-08-28 21:38:19
  */
 export {
   isArguments,
@@ -28,7 +28,6 @@
   isMatchWith,
   isNative,
   isNil,
-  isNumber,
   isNull,
   isObjectLike,
   isPlainObject,
@@ -77,6 +76,11 @@
 
 export function isPascalCase(str: string): boolean {
   const regex = /^[A-Z][A-Za-z]*$/;
+  return regex.test(str);
+}
+
+export function isNumber(str: string): boolean{
+  const regex = /^[0-9]*$/;
   return regex.test(str);
 }
 
@@ -134,4 +138,8 @@
   return false;
 }
 
+export function ActionToJson(action: any): any {
+  return JSON.parse(JSON.stringify(action))
+}
+
 

--
Gitblit v1.9.3