mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 03:55:37 +01:00
feat(session): create website on session request
This commit is contained in:
parent
c881751e4f
commit
66f2075f37
6 changed files with 17137 additions and 8 deletions
|
|
@ -28,7 +28,15 @@ export function uuid(...args) {
|
|||
}
|
||||
|
||||
export function isValidUuid(s) {
|
||||
return validate(s);
|
||||
const isValid = validate(s);
|
||||
if (isValid) return true;
|
||||
|
||||
try {
|
||||
s.toString();
|
||||
return true;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function getRandomChars(n) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue