Skip to content

Commit

Permalink
Merge pull request #47 from jjperezaguinaga/master
Browse files Browse the repository at this point in the history
Restoring ignore of full https paths
  • Loading branch information
johnnyhalife committed Dec 15, 2014
2 parents f564b55 + 6c6b94b commit 913d6ff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tasks/lib/job.js
Expand Up @@ -35,13 +35,13 @@ Job.prototype._replace = function (resource) {

// absolute urls will not be passed into this function
// skip those absolute urls
// if (resource.match(/^https?:\/\//i) || resource.match(/^\/\//) || resource.match(/^data:/i)) {
// self.emit("ignore", {
// resource: resource,
// reason: "ignored on purpose"
// });
// return resource;
// }
if (resource.match(/^https?:\/\//i) || resource.match(/^\/\//) || resource.match(/^data:/i)) {
self.emit("ignore", {
resource: resource,
reason: "ignored on purpose"
});
return resource;
}

if (ignorePath) {
if (Array.isArray(ignorePath)) {
Expand Down

0 comments on commit 913d6ff

Please sign in to comment.