mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
Update client/lib/json-patch-lib.ts
This commit is contained in:
@@ -60,6 +60,7 @@ export function pathFromArray(args: Array<string | number>): string {
|
|||||||
args
|
args
|
||||||
.map(a =>
|
.map(a =>
|
||||||
String(a)
|
String(a)
|
||||||
|
// do not change order, "~" needs to be replaced first
|
||||||
.replace(new RegExp('~', 'g'), '~0')
|
.replace(new RegExp('~', 'g'), '~0')
|
||||||
.replace(new RegExp('/', 'g'), '~1'),
|
.replace(new RegExp('/', 'g'), '~1'),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user