This commit is contained in:
zyp
2026-11-27 14:43:37 +08:00
parent 1ae94dfb1f
commit b18c6efe92
64 changed files with 5629 additions and 2414 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ def display_note(note, definition=None):
# Only remove an exact registered scope description consisting solely of access
# mechanics. Descriptions containing business limitations remain untouched.
scope = (definition or {}).get('scope_description', '')
if scope and re.fullmatch(r'[^;。\n]*(?:权限|数据范围|DataScope)[。]?', scope) and not any(
if scope and re.fullmatch(r'[^;。\n]*(?:权限|数据范围|授权范围|DataScope)[。]?', scope) and not any(
word in scope for word in ('仅', '不包含', '不等于', '未', '不能', '只', '除')
):
text = text.replace(scope, '')