mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +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
|
||||
.map(a =>
|
||||
String(a)
|
||||
// do not change order, "~" needs to be replaced first
|
||||
.replace(new RegExp('~', 'g'), '~0')
|
||||
.replace(new RegExp('/', 'g'), '~1'),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user