Skip to content

Commit

Permalink
Great!
Browse files Browse the repository at this point in the history
  • Loading branch information
boomzero committed Aug 18, 2024
1 parent 7132391 commit 7ce9b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ export class Process {
if (Data["Color"] === Data["BackgroundColor"]) {
return new Result(false, "背景色和字体色不能相同");
}
if (Data["Content"].includes("管理员") || Data["Content"].toLowerCase().includes("manager")) {
if (Data["Content"].includes("管理员") || Data["Content"].toLowerCase().includes("manager") || Data["Content"].toLowerCase().includes("admin")) {
return new Result(false, "请不要试图冒充管理员");
}
const allowedPattern = /^[\u0000-\u007F\u4E00-\u9FFF\u3400-\u4DBF\u2000-\u206F\u3000-\u303F\uFF00-\uFFEF\uD83C-\uDBFF\uDC00-\uDFFF]*$/;
Expand Down

0 comments on commit 7ce9b4d

Please sign in to comment.