@vscode/vsce 2.22.1-0 → 2.22.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/package.js +1 -1
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -522,7 +522,7 @@ class MarkdownProcessor extends BaseProcessor {
|
|
|
522
522
|
contents = contents.replace(markdownPathRegex, urlReplace);
|
|
523
523
|
// Replace <img> links with urls
|
|
524
524
|
contents = contents.replace(/<(?:img|video)[^>]+src=["']([/.\w\s#-]+)['"][^>]*>/gm, (all, link) => {
|
|
525
|
-
const isLinkRelative = !/^\w+:\/\//.test(link) && link[0] !== '#';
|
|
525
|
+
const isLinkRelative = !/^\w+:\/\//.test(link) && link[0] !== '#' && !link.startsWith('data:');
|
|
526
526
|
if (!this.baseImagesUrl && isLinkRelative) {
|
|
527
527
|
throw new Error(`Couldn't detect the repository where this extension is published. The image will be broken in ${this.name}. GitHub/GitLab repositories will be automatically detected. Otherwise, please provide the repository URL in package.json or use the --baseContentUrl and --baseImagesUrl options.`);
|
|
528
528
|
}
|