mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 20:43:56 +08:00
✨ Sync 2026-08-13 21:00:03
This commit is contained in:
1 parent
08ad2012b5
commit
a5a8d2e582
48 files changed
+1339
-1967
No files matched your search
@@ -369,6 +369,12 @@ function is_timehhmm(str)
|
||||
end
|
||||
datatypes.timehhmm = is_timehhmm
|
||||
|
||||
function is_uuid(str)
|
||||
local pattern = "^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$"
|
||||
return string.match(str, pattern) ~= nil
|
||||
end
|
||||
datatypes.uuid = is_uuid
|
||||
|
||||
function is_normal_node(e)
|
||||
if e and e.type and e.protocol and (e.protocol == "_balancing" or e.protocol == "_shunt" or e.protocol == "_iface" or e.protocol == "_urltest") then
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user