(filepath: string)
| 438 | const outURL = new URL("file://") |
| 439 | let resolved = resolve(filepath) |
| 440 | // path.resolve strips trailing slashes so we must add them back |
| 441 | const filePathLast = filepath.charCodeAt(filepath.length - 1) |
| 442 | if ( |
| 443 | (filePathLast === CHAR_FORWARD_SLASH) && |
| 444 | resolved[resolved.length - 1] !== "/" |
| 445 | ) { |
| 446 | resolved += "/" |
| 447 | } |
| 448 | outURL.pathname = encodePathChars(resolved) |
| 449 | return Effect.succeed(outURL) |
| 450 | } |
| 451 | |
| 452 | const percentRegExp = /%/g |
| 453 | const backslashRegExp = /\\/g |
| 454 | const newlineRegExp = /\n/g |
| 455 | const carriageReturnRegExp = /\r/g |
| 456 | const tabRegExp = /\t/g |
nothing calls this directly
no test coverage detected
searching dependent graphs…