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

get-urls

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-urls - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

4

index.js
'use strict';
var arrayUniq = require('array-uniq');
var urlRegex = require('url-regex');
module.exports = function (str) {
var reUrl = /(^|\s)((https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?)/gi;
var urls = str.match(reUrl);
var urls = str.match(urlRegex());

@@ -8,0 +8,0 @@ if (!urls) {

{
"name": "get-urls",
"version": "1.0.1",
"version": "2.0.0",
"description": "Get all urls in a string",

@@ -41,3 +41,4 @@ "license": "MIT",

"array-uniq": "^1.0.0",
"get-stdin": "^1.0.0"
"get-stdin": "^3.0.0",
"url-regex": "^1.0.2"
},

@@ -44,0 +45,0 @@ "devDependencies": {

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