Skip to content

Commit

Permalink
Change file paths to use an uppercase drive letter when normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
mhahn-ts authored and RobertOstermann committed Aug 23, 2023
1 parent cb5552b commit 5bd2cbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/features/helper/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export default class Utilities {
return path;
}

// Capitalize drive letter
path = path.replace(/^[A-Za-z]:/, match => match.toUpperCase());

if (allowEscapes) {
return path.replace(/\\{2,}/g, "/");
}
Expand Down

0 comments on commit 5bd2cbf

Please sign in to comment.