Update lib/filters.js

Co-authored-by: Rohan Deb Sarkar <rohandebsarkar+git@gmail.com>
pull/1283/head
Nicholas Fasching 2022-07-09 07:46:45 -04:00 committed by GitHub
parent fbc33ce746
commit b90b2b9bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export const refFilter = (data, { domain, domainOnly, raw }) => {
const cleanUrl = url => {
try {
if (url === '') {
return 'direct';
return 'direct/none';
}
const { hostname, origin, pathname, searchParams, protocol } = new URL(url);