(path: string)
| 131 | * @returns true if the path contains traversal (e.g., '../', '..\', or ends with '..') |
| 132 | */ |
| 133 | export function containsPathTraversal(path: string): boolean { |
| 134 | return /(?:^|[\\/])\.\.(?:[\\/]|$)/.test(path) |
| 135 | } |
| 136 | |
| 137 | // Re-export from the shared zero-dep source. |
| 138 | export { sanitizePath } from './sessionStoragePortable.js' |
no outgoing calls
no test coverage detected