Skip to content

Commit

Permalink
Merge branch 'feat/parse-file' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangtaofeng committed Mar 5, 2024
2 parents 5de94cc + dcd5eef commit bb2c362
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const handleMarkdownCode = (
let res = text
if (isOwnMessage) {
const startRex =
/(^\n?```markdown)|(^\n?```md)|(\n*```markdown) | (\n*```md)/gim
/(^\n?```markdown)|(^\n?```md)|(\n*```markdown)|(\n*```md)/gim
const endRex = /(```\n?$)|(```\n\n)/gm
if (startRex.test(res) && endRex.test(res)) {
res = text.replace(startRex, () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/src/page/AI/components/PreviewChat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const PreviewChat: FC<PreviewChatProps> = (props) => {
}
} catch (e) {
message.error({
content: t("dashboard.message.no_usable_text_conte"),
content: t("dashboard.message.bad_file"),
})
} finally {
setParseKnowledgeLoading(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const containerStyle = css`
justify-content: flex-end;
align-items: flex-start;
flex-wrap: wrap;
margin-bottom: 8px;
${applyMobileStyle(css`
display: flex;
flex-direction: column;
Expand Down

0 comments on commit bb2c362

Please sign in to comment.