Home / Function/ escapeUnderscore() — tailwindcss Function Reference

escapeUnderscore() — tailwindcss Function Reference

Architecture documentation for the escapeUnderscore() function in candidate.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  8a1efc4f_7d6e_db3f_8e52_b25e12f7293a["escapeUnderscore()"]
  ba6fca27_7720_5839_0f92_bc2abb8db636["candidate.ts"]
  8a1efc4f_7d6e_db3f_8e52_b25e12f7293a -->|defined in| ba6fca27_7720_5839_0f92_bc2abb8db636
  6ed70775_e947_c74d_9604_e478b2ca9982["recursivelyEscapeUnderscores()"]
  6ed70775_e947_c74d_9604_e478b2ca9982 -->|calls| 8a1efc4f_7d6e_db3f_8e52_b25e12f7293a
  style 8a1efc4f_7d6e_db3f_8e52_b25e12f7293a 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

Frequently Asked Questions

What does escapeUnderscore() do?
escapeUnderscore() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/candidate.ts.
Where is escapeUnderscore() defined?
escapeUnderscore() is defined in packages/tailwindcss/src/candidate.ts at line 1174.
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