From 6a386a7b1a125b446f6705e0acd60b6026fdd8dd Mon Sep 17 00:00:00 2001 From: arcdev1 Date: Sun, 26 Oct 2014 15:02:35 +0000 Subject: [PATCH] fix for remote refs not containing a hash; conforms with RCF6901 --- docson.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docson.js b/docson.js index 35fbc17..d1af2c9 100644 --- a/docson.js +++ b/docson.js @@ -443,7 +443,7 @@ define(["lib/jquery", "lib/handlebars", "lib/highlight", "lib/jsonpointer", "lib var external = false; if((/^https?:\/\//).test(item)) { external = true; - } else if(item.indexOf('#') > 0){ + } else if(item.indexOf('#') !== 0){ //Turning relative refs to absolute ones external = true; item = baseUrl + item;