Removed a todo

This commit is contained in:
jos 2016-09-23 12:07:44 +02:00
parent 6db127739c
commit 10e9f16b75
1 changed files with 1 additions and 5 deletions

View File

@ -633,10 +633,6 @@ export function parseJSONPointer (pointer) {
*/
export function compileJSONPointer (path) {
return '/' + path
.map(p => {
return typeof p === 'string' // TODO: remove this check when the path is all strings
? p.replace(/~/g, '~0').replace(/\//g, '~1')
: p
})
.map(p => String(p).replace(/~/g, '~0').replace(/\//g, '~1'))
.join('/')
}