aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/utils.js b/lib/utils.js
index e23799d8..2b580786 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -56,12 +56,6 @@ var utils = {
// are there more?
var specialHostNames = [ 'localhost' ];
- // trim str
- str = str.replace(/^\s+|\s+$/g, '');
-
- if (str[0] === '/')
- return "file://" + str;
-
// it starts with a scheme, so it's definitely an URL
if (/^[a-z]{3,}:\/\//.test(str))
return true;