(segment: string)
| 90 | * JSON Pointer has special meaning for "/" and "~", therefore these must be encoded |
| 91 | */ |
| 92 | export const encode = (segment: string) => |
| 93 | segment?.replace(/~/g, '~0').replace(/\//g, '~1'); |
| 94 | /** |
| 95 | * Decodes a given JSON Pointer segment to its "normal" representation |
| 96 | */ |
no outgoing calls
no test coverage detected
searching dependent graphs…