MCPcopy Create free account
hub / github.com/microsoft/Webwright / shortText

Function shortText

assets/compare_trajectory/app.js:27–33  ·  view source on GitHub ↗
(value, limit = 220)

Source from the content-addressed store, hash-verified

25}
26
27function shortText(value, limit = 220) {
28 const clean = String(value || '').replace(/\s+/g, ' ').trim();
29 if (!clean) {
30 return '';
31 }
32 return clean.length > limit ? clean.slice(0, limit - 3) + '...' : clean;
33}
34
35function shortMultiline(value, limit = 440) {
36 const clean = String(value || '').trim();

Callers 4

primaryCommandFunction · 0.85
extractBoldSummaryFunction · 0.85
parseSessionToolSectionFunction · 0.85
normalizeCodexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected