From 95facca80044a2024d2bdf33c52379a14060be75 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Thu, 7 May 2026 23:23:06 +0800 Subject: [PATCH] fix(PropertySet): use GetFileNameWithoutExtension instead of .BaseName on string FilePath is a [string] type, so calling .BaseName returns silently. Use the static .NET method instead. Fixes #14 Co-authored-by: Jah-yee --- Gatekeeper/Classes/Property.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gatekeeper/Classes/Property.ps1 b/Gatekeeper/Classes/Property.ps1 index c73b402..3cd4135 100644 --- a/Gatekeeper/Classes/Property.ps1 +++ b/Gatekeeper/Classes/Property.ps1 @@ -136,7 +136,7 @@ class PropertySet { } $ps = [PropertySet]::new($json) $ps.FilePath = (Resolve-Path $FilePath).Path - $ps.Name = $ps.FilePath.BaseName + $ps.Name = [System.IO.Path]::GetFileNameWithoutExtension($ps.FilePath) return $ps }