Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TeleBoxOrg/TeleBox_Plugins
/ formatRawUrl
Function
formatRawUrl
subinfo/subinfo.ts:81–81 ·
view source on GitHub ↗
(url: string, isTxtOutput: boolean)
Source
from the content-addressed store, hash-verified
79
return
text.replace(/([*`>#+\-.!_[\](){}])/g,
'\\$1'
);
80
}
81
82
// 流量字节单位转换
83
function
formatSize(size: number): string {
84
const
UNITS = [
'B'
,
'KB'
,
'MB'
,
'GB'
,
'TB'
,
'PB'
];
Callers
2
handleSubinfo
Method · 0.85
handleCha
Method · 0.85
Calls
1
htmlEscape
Function · 0.70
Tested by
no test coverage detected