Skip to content

Commit

Permalink
Strip '\r' and '\n' from the end of each line if they exist when pars…
Browse files Browse the repository at this point in the history
…ing 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
  • Loading branch information
browntarik authored Jun 27, 2024
1 parent 2d22b14 commit b5057a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [];
Expand Down

0 comments on commit b5057a1

Please sign in to comment.