Skip to content

Commit

Permalink
Merge pull request #48 from bem-site/FEI-998
Browse files Browse the repository at this point in the history
override-links: Uncomment replaceImageSources call
  • Loading branch information
tadatuta committed Nov 5, 2015
2 parents 3dc2aa8 + 823dc0d commit 6e23490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tasks/override-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
}

//TODO ask for case with missed doc param
return buildReplace(str, Url.resolve((doc ? doc.url : baseVersionGhUrl), src));
return buildReplace(str, Url.resolve((doc ? doc.url : baseVersionGhUrl), src));
});
},

Expand Down Expand Up @@ -317,7 +317,7 @@ module.exports = {
} else if (!_this.isAbsolute(Url.parse(href))) {
href = variants[0];
}

if (url.hash) {
href = Url.format(_.merge(Url.parse(href), { hash: url.hash }));
}
Expand All @@ -344,7 +344,7 @@ module.exports = {
return content;
}

// content = this.replaceImageSources(content, node, doc);
content = this.replaceImageSources(content, node, doc);
content = this.replaceLinkHrefs(content, node, doc, existed.urlsHash, existed.existedUrls);

return content;
Expand Down

0 comments on commit 6e23490

Please sign in to comment.