diff --git a/tool_core.js b/tool_core.js index 730c25a..2e83320 100644 --- a/tool_core.js +++ b/tool_core.js @@ -471,4 +471,8 @@ module.exports = { } return array }, + + is_uuid (uuid) { + return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(unid) + }, }