From cfb13b2d54e891562a17c87e93bb621a99e0aba4 Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Thu, 6 May 2021 10:47:23 +0200 Subject: [PATCH] enhancement #649 as refFilter, urlFilter is expanded checking agains url !== null. --- lib/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filters.js b/lib/filters.js index 733dab94..bb8b0c38 100644 --- a/lib/filters.js +++ b/lib/filters.js @@ -3,7 +3,7 @@ import { removeTrailingSlash, removeWWW, getDomainName } from './url'; export const urlFilter = (data, { raw }) => { const isValidUrl = url => { - return url !== '' && !url.startsWith('#'); + return url !== '' && url !== null && !url.startsWith('#'); }; if (raw) {