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:
@@ -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'), '~'),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user