summaryrefslogtreecommitdiffstats
path: root/node_modules/prepend-http/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/prepend-http/index.js')
-rw-r--r--node_modules/prepend-http/index.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/node_modules/prepend-http/index.js b/node_modules/prepend-http/index.js
deleted file mode 100644
index 60f532a..0000000
--- a/node_modules/prepend-http/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-module.exports = function (url) {
- if (typeof url !== 'string') {
- throw new TypeError('Expected a string, got ' + typeof url);
- }
-
- url = url.trim();
-
- if (/^\.*\/|^(?!localhost)\w+:/.test(url)) {
- return url;
- }
-
- return url.replace(/^(?!(?:\w+:)?\/\/)/, 'http://');
-};