enhancement #649

as refFilter, urlFilter is expanded checking agains url !== null.
This commit is contained in:
Andreas Fuchs 2021-05-06 10:47:23 +02:00
parent bd8f72daab
commit cfb13b2d54

View File

@ -3,7 +3,7 @@ import { removeTrailingSlash, removeWWW, getDomainName } from './url';
export const urlFilter = (data, { raw }) => { export const urlFilter = (data, { raw }) => {
const isValidUrl = url => { const isValidUrl = url => {
return url !== '' && !url.startsWith('#'); return url !== '' && url !== null && !url.startsWith('#');
}; };
if (raw) { if (raw) {