From bd13bc8d68d6f94b9cad39330c3913a9921d50aa Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 24 Jul 2024 12:08:18 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-apt/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index 902d32bc1..280c5d5d2 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -2124,7 +2124,7 @@ def addMasterRepSlaveUser(version=''): # address = args['address'].strip() # dataAccess = args['dataAccess'].strip() - reg = "^[\w-]+$" + reg = r"^[\w-]+$" if not re.match(reg, username): return mw.returnJson(False, '用户名不能带有特殊符号!') checks = ['root', 'mysql', 'test', 'sys', 'performance_schema','information_schema']