summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/noder.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index f25684a5..67d76715 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1318,6 +1318,11 @@ function m.isCommonField(field)
return true
end
+function m.isGlobalID(id)
+ return ssub(id, 1, 2) == 'g:'
+ or ssub(id, 1, 3) == 'dn:'
+end
+
---获取source的ID
---@param source parser.guide.object
---@return string