From 84636a35752adeabead6308b4a0fe347b1b414ea Mon Sep 17 00:00:00 2001 From: JianBo He Date: Tue, 21 Mar 2023 09:10:20 +0800 Subject: [PATCH] chore: improve changes --- changes/ce/fix-10172.en.md | 4 ++-- changes/ce/fix-10172.zh.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/changes/ce/fix-10172.en.md b/changes/ce/fix-10172.en.md index 821bfbfe0..8a0c5c96e 100644 --- a/changes/ce/fix-10172.en.md +++ b/changes/ce/fix-10172.en.md @@ -1,9 +1,9 @@ Fix the incorrect default ACL rule, which was: ``` -{allow, {username, "^dashboard$"}, subscribe, ["$SYS/#"]}. +{allow, {username, "^dashboard?"}, subscribe, ["$SYS/#"]}. ``` However, it should use `{re, "^dashboard$"}` to perform a regular expression match: ``` -{allow, {username, {re,"^dashboard?"}}, subscribe ,["$SYS/#"]}. +{allow, {username, {re,"^dashboard$"}}, subscribe ,["$SYS/#"]}. ``` diff --git a/changes/ce/fix-10172.zh.md b/changes/ce/fix-10172.zh.md index 1111c7613..bfdfab60c 100644 --- a/changes/ce/fix-10172.zh.md +++ b/changes/ce/fix-10172.zh.md @@ -1,8 +1,8 @@ 修复错误的默认 ACL 规则,之前是: ``` -{allow, {username, "^dashboard$"}, subscribe, ["$SYS/#"]}. +{allow, {username, "^dashboard?"}, subscribe, ["$SYS/#"]}. ``` -但执行正则表达式的匹配应该使用 `{re, "^dashboard?”}`: +但执行正则表达式的匹配应该使用 `{re, "^dashboard$"}`: ``` -{allow, {username, {re, "^dashboard?"}}, subscribe, ["$SYS/#"]}. +{allow, {username, {re, "^dashboard$"}}, subscribe, ["$SYS/#"]}. ```