Skip to content

Commit

Permalink
fix: deeplink 被加上域名开头 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
linfaxin committed Jun 6, 2024
1 parent f85c630 commit cb5ba76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/vditor/transform-will-render-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const parseHTMLTemp = document.createElement('template');

function tryAppendResourceBaseUrl(src: string | null, appendResAuthToken?: boolean, appendDownloadFileName?: string): string {
if (!src) return '';
if (/^(https?:|data:|file:|\/|\.|#|\?)/.test(src)) {
if (/^(\S+:|\/|\.|#|\?)/.test(src)) {
return src;
}
src = getResourceUrl(src);
Expand Down

0 comments on commit cb5ba76

Please sign in to comment.