From d42076528ee9f4e17acdaecb68d3e95155db63ec Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Thu, 19 Mar 2015 17:07:52 -0400 Subject: [PATCH] string literal is not instanceof String JavaScript is dumb. --- test/render.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/render.test.js b/test/render.test.js index 23fa455f5..cb62bf0a9 100644 --- a/test/render.test.js +++ b/test/render.test.js @@ -99,7 +99,7 @@ function rewriteLocalSchema(url) { return url.map(function(str) { return str.replace(regex, ''); }); - } else if (url instanceof String) { + } else if (typeof url === "string") { return url.replace(regex, ''); } }