MCPcopy
hub / github.com/benjitaylor/agentation / isMinifiedName

Function isMinifiedName

package/src/utils/react-detection.ts:604–610  ·  view source on GitHub ↗

* Check if a name looks like minified/production code (single letter or very short)

(name: string)

Source from the content-addressed store, hash-verified

602 * Check if a name looks like minified/production code (single letter or very short)
603 */
604function isMinifiedName(name: string): boolean {
605 // Single letter or two letters that look like minified (e.g., "e", "t", "Zt")
606 if (name.length <= 2) return true;
607 // All lowercase short names are likely minified
608 if (name.length <= 3 && name === name.toLowerCase()) return true;
609 return false;
610}
611
612/**
613 * Walks up the fiber tree to collect React component names

Callers 1

getReactComponentNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…