mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: generate types always with LF (#15245)
This commit is contained in:
parent
074ae99dc5
commit
f6bdf3a3cc
@ -615,8 +615,6 @@ class TypesGenerator {
|
||||
content = content.replace(/\r\n/g, '\n');
|
||||
if (removeTrailingWhiteSpace)
|
||||
content = content.replace(/( +)\n/g, '\n'); // remove trailing whitespace
|
||||
if (os.platform() === 'win32')
|
||||
content = content.replace(/\n/g, '\r\n');
|
||||
const existing = fs.readFileSync(filePath, 'utf8');
|
||||
if (existing === content)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user