(path: string)
| 56 | * that would otherwise allow prototype-chain traversal. |
| 57 | */ |
| 58 | export function isValidPath (path: string): boolean { |
| 59 | try { |
| 60 | tokenize(path) |
| 61 | return true |
| 62 | } catch { |
| 63 | return false |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Parses the path. Splits it into |