fix: model logs loading

This commit is contained in:
jialin
2024-11-29 13:41:28 +08:00
parent 890287ce72
commit 435161854c
13 changed files with 104 additions and 26 deletions
+6
View File
@@ -133,3 +133,9 @@ const htmlSpecialTags = /^<html>(.|\n|\r)*<\/html>$/i;
export const isHTMLDocumentString = (str: string) => {
return htmlSpecialTags.test(str?.trim());
};
// generate a random number between 0 and 64 bit
export const generateRandomNumber = () => {
return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
};