MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getInlineTextSnippet

Function getInlineTextSnippet

content/vps-panel.js:115–120  ·  view source on GitHub ↗
(text, maxLength = 160)

Source from the content-addressed store, hash-verified

113}
114
115function getInlineTextSnippet(text, maxLength = 160) {
116 const normalized = (text || '').replace(/\s+/g, ' ').trim();
117 if (!normalized) return '';
118 if (normalized.length <= maxLength) return normalized;
119 return `${normalized.slice(0, maxLength)}...`;
120}
121
122function getPageTextSnippet(maxLength = 240) {
123 const bodyText = document.body?.innerText || document.documentElement?.innerText || '';

Callers 8

getPageTextSnippetFunction · 0.85
getVpsPanelSnapshotFunction · 0.85
waitForExactSuccessBadgeFunction · 0.85
step1_getOAuthLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected