escapeUnderscore() — tailwindcss Function Reference
Architecture documentation for the escapeUnderscore() function in candidate.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 33e3118a_eb66_f6f3_13f0_817d9f76edf1["escapeUnderscore()"] e73ecbca_812d_ed91_0c5d_af2f6a61ea6b["recursivelyEscapeUnderscores()"] e73ecbca_812d_ed91_0c5d_af2f6a61ea6b -->|calls| 33e3118a_eb66_f6f3_13f0_817d9f76edf1 style 33e3118a_eb66_f6f3_13f0_817d9f76edf1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/candidate.ts lines 1174–1178
function escapeUnderscore(value: string): string {
return value
.replaceAll('_', String.raw`\_`) // Escape underscores to keep them as-is
.replaceAll(' ', '_') // Replace spaces with underscores
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does escapeUnderscore() do?
escapeUnderscore() is a function in the tailwindcss codebase.
What calls escapeUnderscore()?
escapeUnderscore() is called by 1 function(s): recursivelyEscapeUnderscores.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free