MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / htmlEscape

Function htmlEscape

portball/portball.ts:12–16  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

10// HTML转义函数
11const prefixes = getPrefixes();
12const mainPrefix = prefixes[0];
13
14const parseTimeString = (timeStr: string): number => {
15 const match = timeStr.match(/^(\d+)([smhd])?$/i);
16 if (!match) return -1;
17
18 const value = parseInt(match[1]);
19 const unit = match[2]?.toLowerCase() || 's';

Callers 1

handlePortballMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected