From 0912360794b292720ef4018d866159b9e78fadd3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 24 Jul 2024 14:30:42 +0800 Subject: [PATCH] Update index.py --- plugins/postgresql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/postgresql/index.py b/plugins/postgresql/index.py index 5ac2bab9f..2c5a2a79e 100755 --- a/plugins/postgresql/index.py +++ b/plugins/postgresql/index.py @@ -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, '数据库名称不能带有特殊符号!')