From 5bd2cbfe3de627c83c70eafdad6e9673e5e56420 Mon Sep 17 00:00:00 2001 From: mhahn-ts Date: Tue, 22 Aug 2023 15:20:48 -0400 Subject: [PATCH] Change file paths to use an uppercase drive letter when normalized --- src/features/helper/utilities.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/features/helper/utilities.ts b/src/features/helper/utilities.ts index 610f3d1..aa373fa 100644 --- a/src/features/helper/utilities.ts +++ b/src/features/helper/utilities.ts @@ -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, "/"); }