mirror of
https://github.com/hanzoai/jest.git
synced 2026-09-24 16:59:57 +00:00
chore: use String.replaceAll if possible (#14823)
This commit is contained in:
@@ -195,7 +195,7 @@ await Promise.all(
|
||||
}),
|
||||
);
|
||||
|
||||
definitionFile = definitionFile.replace(/\r\n/g, '\n');
|
||||
definitionFile = definitionFile.replaceAll('\r\n', '\n');
|
||||
|
||||
const hasNodeTypesReference = definitionFile.includes(
|
||||
typesNodeReferenceDirective,
|
||||
|
||||
Reference in New Issue
Block a user