5 lines
199 B
TypeScript
5 lines
199 B
TypeScript
/** True when nav item id comes from the backend (UUID). */
|
|
export function isServerNavId(id: string): boolean {
|
|
return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(id)
|
|
}
|