Fix line endings issue with Notice file (#17417)

This commit is contained in:
Tommaso Sciortino
2026-01-23 15:19:47 -08:00
committed by GitHub
parent daccf4d6d1
commit 00b5b2045f

View File

@@ -72,6 +72,7 @@ async function getDependencyLicense(depName, depVersion) {
if (licenseFile) {
try {
licenseContent = await fs.readFile(licenseFile, 'utf-8');
licenseContent = licenseContent.replace(/\r\n/g, '\n');
} catch (e) {
console.warn(
`Warning: Failed to read license file for ${depName}: ${e.message}`,