@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.
Files changed (2) hide show
  1. package/out/package.js +1 -1
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "2.22.1-0",
3
+ "version": "2.22.1-2",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",