Skip to content

Commit

Permalink
fix(ChatData): Fix execution failure error after manually updating SQL (
Browse files Browse the repository at this point in the history
#1812)

Co-authored-by: hec <[email protected]>
  • Loading branch information
Hec-gitHub and hec authored Aug 28, 2024
1 parent e481384 commit 549f256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/components/chat/db-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ function DbEditor() {
if (!value) {
return { sql: '', thoughts: '' };
}
const match = value && value.match(/(--.*)\n([\s\S]*)/);
const match = value && value.match(/(--.*)?\n?([\s\S]*)/);
let thoughts = '';
let sql;
if (match && match.length >= 3) {
Expand Down

0 comments on commit 549f256

Please sign in to comment.