From 6e96dc2a203a167bea8bb88c3ca3b040087d2ece Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Wed, 11 Oct 2023 02:11:49 -0400 Subject: [PATCH] Code cleanup --- src/util.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util.spec.ts b/src/util.spec.ts index bec0d50..30fd2ae 100644 --- a/src/util.spec.ts +++ b/src/util.spec.ts @@ -5,8 +5,7 @@ import {readdirSync, statSync} from 'node:fs'; import {Manager} from '@shockpkg/core'; export const platformIsMac = process.platform === 'darwin'; -export const platformIsWindows = - process.platform === 'win32' || (process.platform as string) === 'win64'; +export const platformIsWindows = /^win\d/.test(process.platform); // eslint-disable-next-line no-process-env export const envFastTest = process.env.DIR_PROJECTOR_FAST_TEST || null;