New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@progfay/scrapbox-parser

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progfay/scrapbox-parser - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

4

lib/block/node/StrongImageNode.js

@@ -5,3 +5,3 @@ "use strict";

const strongImageRegExp = /^(?<left>.*?)\[\[(?<src>https?:\/\/[^\s\]]+\.(png|jpe?g|gif|svg))\]\](?<right>.*)$/i;
const gyazoStrongImageRegExp = /^(?<left>.*?)\[\[(?<src>https?:\/\/([0-9a-z\-]+\.)?gyazo\.com\/[0-9a-f]{32})\]\](?<right>.*)$/;
const gyazoStrongImageRegExp = /^(?<left>.*?)\[\[(?<src>https?:\/\/([0-9a-z-]+\.)?gyazo\.com\/[0-9a-f]{32})\]\](?<right>.*)$/;
const isStrongImageMatch = (obj) => (obj && obj.groups && obj.groups.src);

@@ -19,3 +19,3 @@ const createStrongImageNode = (src) => ({

const { left, src, right } = StrongImageMatch.groups;
const isGyazoImage = /https?:\/\/([0-9a-z\-]+\.)?gyazo\.com\/[0-9a-f]{32}/.test(src);
const isGyazoImage = /https?:\/\/([0-9a-z-]+\.)?gyazo\.com\/[0-9a-f]{32}/.test(src);
return [

@@ -22,0 +22,0 @@ ..._1.convertToLineNodes(left, { nested, quoted }),

@@ -15,3 +15,3 @@ "use strict";

const createUrlNode = (href, content) => {
if (!isUrl(content) && !isImageUrl(href))
if (!(isUrl(content) && isImageUrl(content)) && !isImageUrl(href))
return ExternalLinkNode_1.createExternalLinkNode(href, content);

@@ -18,0 +18,0 @@ if (isImageUrl(content))

{
"name": "@progfay/scrapbox-parser",
"version": "2.1.1",
"version": "2.2.0",
"description": "parse Scrapbox notation to JavaScript Object",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc