fixLineEndings() — astro Function Reference
Architecture documentation for the fixLineEndings() function in test-utils.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD beb21e0a_5a04_1aeb_f065_5ab6c5ffe2ea["fixLineEndings()"] 0a624eac_945e_c9e8_c9de_3feb9de2dd15["test-utils.js"] beb21e0a_5a04_1aeb_f065_5ab6c5ffe2ea -->|defined in| 0a624eac_945e_c9e8_c9de_3feb9de2dd15 06200471_ead6_6a9d_96c5_efba6dc62587["formatPost()"] 06200471_ead6_6a9d_96c5_efba6dc62587 -->|calls| beb21e0a_5a04_1aeb_f065_5ab6c5ffe2ea style beb21e0a_5a04_1aeb_f065_5ab6c5ffe2ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/test-utils.js lines 397–399
export function fixLineEndings(str) {
return str.replace(/\r\n/g, '\n');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does fixLineEndings() do?
fixLineEndings() is a function in the astro codebase, defined in packages/astro/test/test-utils.js.
Where is fixLineEndings() defined?
fixLineEndings() is defined in packages/astro/test/test-utils.js at line 397.
What calls fixLineEndings()?
fixLineEndings() is called by 1 function(s): formatPost.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free