* Determines whether a path starts with a relative path component (i.e. `.` or `..`).
(path)
| 7598 | * Determines whether a path starts with a relative path component (i.e. `.` or `..`). |
| 7599 | */ |
| 7600 | function pathIsRelative(path) { |
| 7601 | return /^\.\.?($|[\\/])/.test(path); |
| 7602 | } |
| 7603 | ts.pathIsRelative = pathIsRelative; |
| 7604 | /** |
| 7605 | * Determines whether a path is neither relative nor absolute, e.g. "path/to/file". |
no test coverage detected
searching dependent graphs…