chore: improve changes

This commit is contained in:
JianBo He 2023-03-21 09:10:20 +08:00
parent b059bad08a
commit 84636a3575
2 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
Fix the incorrect default ACL rule, which was: 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: However, it should use `{re, "^dashboard$"}` to perform a regular expression match:
``` ```
{allow, {username, {re,"^dashboard?"}}, subscribe ,["$SYS/#"]}. {allow, {username, {re,"^dashboard$"}}, subscribe ,["$SYS/#"]}.
``` ```

View File

@ -1,8 +1,8 @@
修复错误的默认 ACL 规则,之前是: 修复错误的默认 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/#"]}.
``` ```