Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ encodeJsonPointerToken
Function
encodeJsonPointerToken
ui/src/protocol/path-resolver.ts:83–85 ·
view source on GitHub ↗
(token: string)
Source
from the content-addressed store, hash-verified
81
* @returns 编码后的路径段
82
*/
83
export
function
encodeJsonPointerToken(token: string): string {
84
return
token.replace(/~/g,
'~0'
).replace(/\
//g, '~1');
85
}
86
87
/**
88
* 解析 JSON Pointer 路径为路径段数组
Callers
1
path-resolver.spec.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected