Skip to content

Commit

Permalink
fix: fix reg when geting index comment (vesoft-inc#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 authored Mar 8, 2022
1 parent 3b858b5 commit 7de3764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/models/nebula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7de3764

Please sign in to comment.