From 3350809003b1e92cbc8852de1c2e16fe716858a8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 02 二月 2024 17:16:33 +0800
Subject: [PATCH] 2024-02-02

---
 src/templates/zshare/codemirror/index.jsx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/templates/zshare/codemirror/index.jsx b/src/templates/zshare/codemirror/index.jsx
index db428e7..0980534 100644
--- a/src/templates/zshare/codemirror/index.jsx
+++ b/src/templates/zshare/codemirror/index.jsx
@@ -144,6 +144,8 @@
       _sql = _sql.replace(item.id, item.value)
     })
 
+    _sql = _sql.replace(/,\n\s*/g, ',')
+
     this.setState({display: false, defaultVal: _sql}, () => {
       this.setState({display: true})
     })

--
Gitblit v1.8.0