mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
5 lines
179 B
TypeScript
5 lines
179 B
TypeScript
export function containsUUID(str: string): boolean {
|
|
const uuidRegex = /[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i
|
|
return uuidRegex.test(str)
|
|
}
|