Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Jan 24, 2025
1 parent f5f8f18 commit d189332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/message-pane/message-item/MessageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1364,8 +1364,8 @@ const NormalEmbed = (props: { message: RawMessage }) => {
};

const replaceImageUrl = (val: string, hasFocus: boolean) => {
const regex = /url\((.*?)\)/gm;
const regex2 = /url\((.*?)\)/m;
const regex = /url\((.*?)\)/gim;
const regex2 = /url\((.*?)\)/im;

return val.replaceAll(regex, (r) => {
let url = regex2.exec(r)?.[1];
Expand Down

0 comments on commit d189332

Please sign in to comment.