Comparing version 9.0.0 to 9.1.0
@@ -8,3 +8,3 @@ 'use strict'; | ||
const ret = new Set(); | ||
const {searchParams} = (new URL(url)); | ||
const {searchParams} = (new URL(url.replace(/^(\/\/|(www\.))/, 'http://$2'))); | ||
@@ -11,0 +11,0 @@ for (const [, value] of searchParams) { |
{ | ||
"name": "get-urls", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"description": "Get all URLs in a string", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -34,9 +35,10 @@ "keywords": [ | ||
"dependencies": { | ||
"normalize-url": "^4.1.0", | ||
"url-regex": "^4.0.0" | ||
"normalize-url": "^4.3.0", | ||
"url-regex": "^4.1.1" | ||
}, | ||
"devDependencies": { | ||
"ava": "^1.2.1", | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.2", | ||
"xo": "^0.24.0" | ||
} | ||
} |
@@ -20,2 +20,4 @@ # get-urls [![Build Status](https://travis-ci.org/sindresorhus/get-urls.svg?branch=master)](https://travis-ci.org/sindresorhus/get-urls) | ||
```js | ||
const getUrls = require('get-urls'); | ||
const text = 'Lorem ipsum dolor sit amet, //sindresorhus.com consectetuer adipiscing http://yeoman.io elit.'; | ||
@@ -53,3 +55,4 @@ | ||
Type: `string[]` | ||
Type: `string[]`<br> | ||
Default: `[]` | ||
@@ -56,0 +59,0 @@ Exclude URLs that match URLs in the given array. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5214
5
74
70
3
Updatednormalize-url@^4.3.0
Updatedurl-regex@^4.1.1