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

url-regex

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-regex - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

2

index.js

@@ -16,3 +16,3 @@ 'use strict';

var regex = [
protocol, auth, '(?:localhost|' + ip + '|' + host + domain + tld + ')',
'(?:' + protocol + '|www\\.)' + auth, '(?:localhost|' + ip + '|' + host + domain + tld + ')',
port, path

@@ -19,0 +19,0 @@ ].join('');

{
"name": "url-regex",
"version": "3.1.1",
"version": "3.2.0",
"description": "Regular expression for matching URLs",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -23,2 +23,5 @@ # url-regex [![Build Status](http://img.shields.io/travis/kevva/url-regex.svg?style=flat)](https://travis-ci.org/kevva/url-regex)

urlRegex().test('www.github.com foo bar');
//=> true
urlRegex({exact: true}).test('http://github.com foo bar');

@@ -25,0 +28,0 @@ //=> false

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