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:
@@ -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] = [];
|
||||
|
||||
Reference in New Issue
Block a user