Removed a todo
This commit is contained in:
parent
6db127739c
commit
10e9f16b75
|
@ -633,10 +633,6 @@ export function parseJSONPointer (pointer) {
|
||||||
*/
|
*/
|
||||||
export function compileJSONPointer (path) {
|
export function compileJSONPointer (path) {
|
||||||
return '/' + path
|
return '/' + path
|
||||||
.map(p => {
|
.map(p => String(p).replace(/~/g, '~0').replace(/\//g, '~1'))
|
||||||
return typeof p === 'string' // TODO: remove this check when the path is all strings
|
|
||||||
? p.replace(/~/g, '~0').replace(/\//g, '~1')
|
|
||||||
: p
|
|
||||||
})
|
|
||||||
.join('/')
|
.join('/')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue