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

Function getActionText

content/vps-panel.js:102–113  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

100}
101
102function getActionText(el) {
103 return [
104 el?.textContent,
105 el?.value,
106 el?.getAttribute?.('aria-label'),
107 el?.getAttribute?.('title'),
108 ]
109 .filter(Boolean)
110 .join(' ')
111 .replace(/\s+/g, ' ')
112 .trim();
113}
114
115function getInlineTextSnippet(text, maxLength = 160) {
116 const normalized = (text || '').replace(/\s+/g, ' ').trim();

Callers 7

getVpsPanelSnapshotFunction · 0.70
findOAuthNavLinkFunction · 0.70
findOAuthCardLoginButtonFunction · 0.70
step1_getOAuthLinkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected