Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@github/paste-markdown

Package Overview
Dependencies
Maintainers
20
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/paste-markdown - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

14

dist/index.esm.js

@@ -274,3 +274,3 @@ function insertText(textarea, text) {

event.preventDefault();
insertText(field, linkify(selectedText, text));
insertText(field, linkify(selectedText, text.trim()));
}

@@ -293,6 +293,14 @@ function hasPlainText(transfer) {

}
const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\/?\s*?$/i;
function isURL(url) {
return URL_REGEX.test(url);
try {
const parsedURL = new URL(url);
return removeTrailingSlash(parsedURL.href).trim() === removeTrailingSlash(url).trim();
}
catch (_a) {
return false;
}
}
function removeTrailingSlash(url) {
return url.endsWith('/') ? url.slice(0, url.length - 1) : url;
}

@@ -299,0 +307,0 @@ function install$1(el) {

@@ -280,3 +280,3 @@ (function (global, factory) {

event.preventDefault();
insertText(field, linkify(selectedText, text));
insertText(field, linkify(selectedText, text.trim()));
}

@@ -299,6 +299,14 @@ function hasPlainText(transfer) {

}
const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\/?\s*?$/i;
function isURL(url) {
return URL_REGEX.test(url);
try {
const parsedURL = new URL(url);
return removeTrailingSlash(parsedURL.href).trim() === removeTrailingSlash(url).trim();
}
catch (_a) {
return false;
}
}
function removeTrailingSlash(url) {
return url.endsWith('/') ? url.slice(0, url.length - 1) : url;
}

@@ -305,0 +313,0 @@ function install$1(el) {

{
"name": "@github/paste-markdown",
"version": "1.3.4",
"version": "1.3.5",
"description": "Paste spreadsheet cells as a Markdown table.",

@@ -5,0 +5,0 @@ "repository": "github/paste-markdown",

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