mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
respect www subdomain when fetching website favicon
This commit is contained in:
parent
1c377bcdc3
commit
83af7fa18a
@ -1,5 +1,5 @@
|
|||||||
function getHostName(url: string) {
|
function getHostName(url: string) {
|
||||||
const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n?=]+)/im);
|
const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?([^:/\n?=]+)/im);
|
||||||
return match && match.length > 1 ? match[1] : null;
|
return match && match.length > 1 ? match[1] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user