Skip to content

Commit

Permalink
bugfix possible url exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Jan 17, 2025
1 parent 4f107c0 commit 8cb698b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader/pluginLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
};

export function getDomainForPlugin(uri) {
return uri && uri.split('/')[2]
return (uri && uri.split('/')[2] || '')
// Skip www. for domain search.
.replace(/^www\./i, "")
// Skip tailing ? for `domain.com?query`
Expand Down

0 comments on commit 8cb698b

Please sign in to comment.