From 928e8f14ea43defb30991dc104e246dc5f3e67b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Fri, 6 Feb 2015 10:50:36 +0100 Subject: [PATCH] Fix problem when http:// contains upper case --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 00513bb..81819f4 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,7 +14,7 @@ var yellowLabTools = function(url, options) { } else { - if (url.indexOf('http://') !== 0 && url.indexOf('https://') !== 0) { + if (url.toLowerCase().indexOf('http://') !== 0 && url.toLowerCase().indexOf('https://') !== 0) { url = 'http://' + url; }