We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daec498 commit f44f557Copy full SHA for f44f557
index.js
@@ -1,6 +1,6 @@
1
'use strict'
2
3
-const URL = global.window ? window.URL : require('url').URL
+const { URL } = require('url')
4
const urlRegex = require('url-regex')({ exact: true })
5
6
const REGEX_HTTP_PROTOCOL = /^https?:\/\//i
0 commit comments