Strip '\r' and '\n' from the end of each line if they exist when parsing the vcpkg database (#12416)

* Strip '\r' and '\n' from the end of each line if they exist when parsing the vcpkg database.

* remove debugging log

* Fix lint issue

* Revert regex

* Refactor line trimming

* Fix lint issues

* Remove old comment
This commit is contained in:
browntarik
2024-06-26 17:18:00 -07:00
committed by GitHub
parent 2d22b1493c
commit b5057a1d02
+1 -1
View File
@@ -66,7 +66,7 @@ async function initVcpkgDatabase(): Promise<VcpkgDatabase> {
}
const portName: string = portFilePair[0];
const relativeHeader: string = portFilePair[1];
const relativeHeader: string = portFilePair[1].trimEnd();
if (!database[relativeHeader]) {
database[relativeHeader] = [];