diff --git a/web/src/components/Editor/Editor.tsx b/web/src/components/Editor/Editor.tsx index fe45188f..c60d6f71 100644 --- a/web/src/components/Editor/Editor.tsx +++ b/web/src/components/Editor/Editor.tsx @@ -73,8 +73,8 @@ const Editor = forwardRef((props: Props, ref: React.ForwardedRef']+)/g; // 图片 正则 -export const IMAGE_URL_REG = /(https?:\/\/[^\s<\\*>']+\.(jpeg|jpg|gif|png|svg))/g; +export const IMAGE_URL_REG = /([^\s<\\*>']+\.(jpeg|jpg|gif|png|svg))/g; // memo 关联正则 export const MEMO_LINK_REG = /\[@(.+?)\]\((.+?)\)/g;