diff --git a/lib/crawler.js b/lib/crawler.js index 97f8da0..9240d7b 100644 --- a/lib/crawler.js +++ b/lib/crawler.js @@ -309,7 +309,7 @@ exports.Crawler = function(options) { // jsdom doesn't support adding local scripts, // We have to read jQuery from the local fs - if (toQueue.jQueryUrl.match(/^(file\:\/\/|\/)/)) { + if (toQueue.jQueryUrl.match(/^(file\:\/\/|\w+\:|\/)/)) { // TODO cache this fs.readFile(toQueue.jQueryUrl.replace(/^file\:\/\//,""),"utf-8",function(err,jq) {