Update index.py

This commit is contained in:
Mr Chen
2024-07-24 14:30:42 +08:00
parent bfc2a82384
commit 0912360794
+1 -1
View File
@@ -866,7 +866,7 @@ def addDb():
if listen_ip not in ["127.0.0.1/32", "localhost", "127.0.0.1"]:
sedConf("listen_addresses", "'*'")
reg = "^[\w\.-]+$"
reg = r"^[\w\.-]+$"
if not re.match(reg, dbname):
return mw.returnJson(False, '数据库名称不能带有特殊符号!')