Commit 0574712
authored
Fix
`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.Image.src on Windows when it is a local file (#363)1 parent 45626c4 commit 0574712
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments