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

Function writeState

parsehub/parsehub.ts:92–96  ·  view source on GitHub ↗
(state: InitState)

Source from the content-addressed store, hash-verified

90let ignoredUpToId = Number(initState.ignoredUpToId || 0) || 0;
91
92// Common progress prefix decoration characters (blocks, emoji, zero-width)
93const PROGRESS_DECO_RE = /^[\s\u2580-\u259F\u25A0-\u25FF\u2000-\u200F\uFEFF\u3000]+/u;
94
95const isProgressText = (text?: string | null): boolean => {
96 if (!text) return false;
97 // Strip common decorative prefix chars first (blocks, emoji, zero-width, ideographic space)
98 const stripped = text.replace(PROGRESS_DECO_RE, "").trim();
99 return PROGRESS_PREFIXES.some((prefix) => stripped.startsWith(prefix));

Callers 3

ensureBotReadyFunction · 0.85
relayParseResultFunction · 0.85
ParseHubPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected