Don’t replace CRLF with LF before parsing CSS

Now that we can handle CRLF correctly in the parser this is no longer necessary
This commit is contained in:
Jordan Pittman 2025-04-29 11:28:41 -04:00
parent da86e231d4
commit 65409a98d9

View file

@ -36,7 +36,6 @@ export function parse(input: string) {
// *before* processing do NOT change the length of the string. This
// would invalidate the mechanism used to track source locations.
if (input[0] === '\uFEFF') input = ' ' + input.slice(1)
input = input.replaceAll('\r\n', ' \n')
let ast: AstNode[] = []
let licenseComments: Comment[] = []