mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Fix webfinger validator
This commit is contained in:
parent
225a89c2af
commit
604abfbef5
3 changed files with 2 additions and 5 deletions
|
@ -27,7 +27,7 @@ function sanitizeUrl (url: string) {
|
|||
|
||||
// Don't import remote scheme from constants because we are in core utils
|
||||
function sanitizeHost (host: string, remoteScheme: string) {
|
||||
let toRemove = remoteScheme === 'https' ? 443 : 80
|
||||
const toRemove = remoteScheme === 'https' ? 443 : 80
|
||||
|
||||
return host.replace(new RegExp(`:${toRemove}$`), '')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue