Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ decodeJsonPointerToken
Function
decodeJsonPointerToken
ui/src/protocol/path-resolver.ts:69–71 ·
view source on GitHub ↗
(token: string)
Source
from the content-addressed store, hash-verified
67
* @returns 解码后的路径段
68
*/
69
export
function
decodeJsonPointerToken(token: string): string {
70
return
token.replace(/~1/g,
'/'
).replace(/~0/g,
'~'
);
71
}
72
73
/**
74
* 编码 JSON Pointer 转义字符
Callers
1
path-resolver.spec.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected