aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
authorNiklas Baumstark2012-01-21 00:34:25 +0100
committerNiklas Baumstark2012-04-10 23:54:35 +0200
commitc808c6a165b5fed117afe22ba0372e288bf6d5ab (patch)
tree3de8dbee459930336c2a983f6be2efc6119aa8fc /lib/utils.js
parentfd549f0385bf37bf4715c14c85db842954038106 (diff)
downloadvimium-c808c6a165b5fed117afe22ba0372e288bf6d5ab.tar.bz2
remove trimming from isUrl
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;