From 1563e2ef18b013bb7bb5781a22e7d92f40454f69 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 24 三月 2025 18:04:21 +0800
Subject: [PATCH] 2025-03-24

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

diff --git a/src/templates/zshare/codemirror/index.jsx b/src/templates/zshare/codemirror/index.jsx
index dfe9c2b..8f26976 100644
--- a/src/templates/zshare/codemirror/index.jsx
+++ b/src/templates/zshare/codemirror/index.jsx
@@ -145,6 +145,9 @@
     })
 
     _sql = _sql.replace(/,\n\s*/g, ',')
+    _sql = _sql.replace(/@db@\s+[a-zA-Z]/g, (w) => {
+      return w.replace(/\s+/g, '')
+    })
 
     this.setState({display: false, defaultVal: _sql}, () => {
       this.setState({display: true})

--
Gitblit v1.8.0