mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: sync
This commit is contained in:
4
src/utils.ts
vendored
4
src/utils.ts
vendored
@@ -48,4 +48,6 @@ export const writeJSON = async (path: string, data: Record<string, any>) => {
|
||||
await writeTextFile(file, JSON.stringify(data, null, 2));
|
||||
}
|
||||
|
||||
export const fmtDate = (date: any) => dayjs(date).format('YYYY-MM-DD HH:mm:ss');
|
||||
export const fmtDate = (date: any) => dayjs(date).format('YYYY-MM-DD HH:mm:ss');
|
||||
|
||||
export const genCmd = (act: string) => act.replace(/\s+|\/+/g, '_').replace(/[^\d\w]/g, '').toLocaleLowerCase();
|
||||
Reference in New Issue
Block a user