From f8b6dea616ed38f0a5bdd54b00bf6e7a03548f71 Mon Sep 17 00:00:00 2001
From: Nut He <18328704+hetao92@users.noreply.github.com>
Date: Tue, 8 Mar 2022 10:32:48 +0800
Subject: [PATCH] fix: fix reg when geting index comment

---
 app/store/models/nebula.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/store/models/nebula.ts b/app/store/models/nebula.ts
index c1277519..a2c626ee 100644
--- a/app/store/models/nebula.ts
+++ b/app/store/models/nebula.ts
@@ -622,7 +622,7 @@ export const nebula = createModel({
         const _type = type === 'TAG' ? 'Tag' : 'Edge';
         const res =
           (data.tables && data.tables[0][`Create ${_type} Index`]) || '';
-        const reg = /comment = "(.+)"/g;
+        const reg = /comment "(.+)"/g;
         const result = reg.exec(res);
         const comment = result ? result[1] : null;
         return comment;