chore: use String.replaceAll if possible (#14823)

This commit is contained in:
Simen Bekkhus
2023-12-31 18:38:00 +01:00
committed by GitHub
parent 255b8b1800
commit 541fdb2f11
68 changed files with 141 additions and 129 deletions
+1 -1
View File
@@ -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,