From c808c6a165b5fed117afe22ba0372e288bf6d5ab Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Sat, 21 Jan 2012 00:34:25 +0100 Subject: remove trimming from isUrl --- lib/utils.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/utils.js') 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; -- cgit v1.2.3