diff --git a/client/lib/json-patch-lib.ts b/client/lib/json-patch-lib.ts index 99b8095..7330260 100644 --- a/client/lib/json-patch-lib.ts +++ b/client/lib/json-patch-lib.ts @@ -48,6 +48,7 @@ export function arrayFromPath(path: string): string[] { .split('/') .slice(1) .map(p => + // order matters, always replace "~1" first p.replace(new RegExp('~1', 'g'), '/').replace(new RegExp('~0', 'g'), '~'), ) }