From c4bfb278ac7eb2fef1e9861203d9afc122b51b23 Mon Sep 17 00:00:00 2001 From: Lucy C <12953208+elvece@users.noreply.github.com> Date: Mon, 3 Oct 2022 10:45:46 -0600 Subject: [PATCH] Update client/lib/json-patch-lib.ts --- client/lib/json-patch-lib.ts | 1 + 1 file changed, 1 insertion(+) 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'), '~'), ) }