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
eosphoros-ai#1812)

Co-authored-by: hec <[email protected]>
  • Loading branch information
2 people authored and Hopshine committed Sep 10, 2024
1 parent 8b0b5c3 commit 9f6d8d9
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 9f6d8d9

Please sign in to comment.