Merge pull request #651 from foxytocin/enhancement

Enhancement of issue #649: also checking agains NULL in urlFilter
This commit is contained in:
Mike Cao authored and GitHub committed 2021-05-12 19:28:22 -07:00
commit a06901336c
1 file changed
+1 -1
+1 -1
View File
@@ -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) {