Closed NinZine closed 2 years ago
new URL("C:\path\filename.png") is treated as a valid URL, which it is not. phin subsequently tries to fetch it, but phin and centra only supports http and https anyway. Therefore isValidUrl will check also the protocol.
new URL("C:\path\filename.png")
phin
centra
isValidUrl
Fixes #358
Thanks @NinZine
new URL("C:\path\filename.png")
is treated as a valid URL, which it is not.phin
subsequently tries to fetch it, butphin
andcentra
only supports http and https anyway. ThereforeisValidUrl
will check also the protocol.