Skip to content

Commit

Permalink
Load jquery file on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
paulvalla committed Sep 4, 2014
1 parent 54d8b74 commit f4bd13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f4bd13f

Please sign in to comment.