stripCnMarkers() — ui Function Reference
Architecture documentation for the stripCnMarkers() function in transform-cleanup.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c780c4ec_87b3_96f7_852b_71aa98849451["stripCnMarkers()"] e5d28271_9de7_c6c9_1240_13894663e9ec["transform-cleanup.ts"] c780c4ec_87b3_96f7_852b_71aa98849451 -->|defined in| e5d28271_9de7_c6c9_1240_13894663e9ec 6bf4b1e9_4fda_58d0_5982_4738b771600c["processStringLiteral()"] 6bf4b1e9_4fda_58d0_5982_4738b771600c -->|calls| c780c4ec_87b3_96f7_852b_71aa98849451 182b5198_cbf0_43bf_ab80_22341899f430["applyCleanup()"] 182b5198_cbf0_43bf_ab80_22341899f430 -->|calls| c780c4ec_87b3_96f7_852b_71aa98849451 style c780c4ec_87b3_96f7_852b_71aa98849451 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/utils/transformers/transform-cleanup.ts lines 17–22
export function stripCnMarkers(className: string) {
return className
.replace(CN_MARKER_REGEX_GLOBAL, "")
.replace(/\s+/g, " ")
.trim()
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does stripCnMarkers() do?
stripCnMarkers() is a function in the ui codebase, defined in packages/shadcn/src/utils/transformers/transform-cleanup.ts.
Where is stripCnMarkers() defined?
stripCnMarkers() is defined in packages/shadcn/src/utils/transformers/transform-cleanup.ts at line 17.
What calls stripCnMarkers()?
stripCnMarkers() is called by 2 function(s): applyCleanup, processStringLiteral.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free