Fixes urls in feed.

This commit is contained in:
Zach Leatherman
2018-01-27 23:22:40 -06:00
parent 3b9f9c111e
commit 1d36b810a3
3 changed files with 12 additions and 9 deletions

View File

@ -5,8 +5,10 @@ const absoluteUrl = require("./AbsoluteUrl");
module.exports = function(htmlContent, base) {
let options = {
eachURL: function(url, attr, element) {
url = url.trim();
// #anchor in-page
if( url.trim().indexOf("#") === 0 ) {
if( url.indexOf("#") === 0 ) {
return url;
}