(string: string)
| 121 | } |
| 122 | |
| 123 | static fromString(string: string): ParsedURL|null { |
| 124 | const parsedURL = new ParsedURL(string.toString()); |
| 125 | if (parsedURL.isValid) { |
| 126 | return parsedURL; |
| 127 | } |
| 128 | return null; |
| 129 | } |
| 130 | |
| 131 | static preEncodeSpecialCharactersInPath(path: string): string { |
| 132 | // Based on net::FilePathToFileURL. Ideally we would handle |