(href)
| 663 | } |
| 664 | } |
| 665 | urlToFilePath(href) { |
| 666 | const url = new URL(href); |
| 667 | if (url.protocol == "file:") { |
| 668 | let path = url.pathname; |
| 669 | if (this.windows) |
| 670 | path = path.slice(1).replaceAll('/', '\\'); |
| 671 | if (this.isDirectoryOrFile(path) == 1) |
| 672 | return path; |
| 673 | } |
| 674 | } |
| 675 | validateURL(href) { |
| 676 | try { |
| 677 | const url = new URL(href); |
no test coverage detected