From 65f9938466fa035982f3e0d5cdd5c8308f64041b Mon Sep 17 00:00:00 2001 From: yongfu Date: Fri, 1 Mar 2019 09:46:30 +0800 Subject: [PATCH] delete no need [ ] --- nginxfmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginxfmt.py b/nginxfmt.py index 1dd1771..3f1d70b 100755 --- a/nginxfmt.py +++ b/nginxfmt.py @@ -47,7 +47,7 @@ def multi_semicolon(single_line): return single_line, 0 m1 = re.match(r"^([^;#]*;)([\s]*#.*)?$", single_line) - m2 = re.match(r"^([^#]+)([;][\s]*)(#.*)?$", single_line) + m2 = re.match(r"^([^#]+)(;[\s]*)(#.*)?$", single_line) if m1 is not None: return single_line, 0