(path: string)
| 156 | * @returns true if the path contains traversal (e.g., '../', '..\', or ends with '..') |
| 157 | */ |
| 158 | export function containsPathTraversal(path: string): boolean { |
| 159 | return /(?:^|[\\/])\.\.(?:[\\/]|$)/.test(path) |
| 160 | } |
| 161 | |
| 162 | // Re-export from the shared zero-dep source. |
| 163 | export { sanitizePath } from './sessionStoragePortable.js' |
no outgoing calls
no test coverage detected