Skip to content

Commit a4fd618

Browse files
Update src/StaticPHP/Artifact/Artifact.php
Co-authored-by: Copilot <[email protected]>
1 parent 9a91aec commit a4fd618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StaticPHP/Artifact/Artifact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function isBinaryExtracted(?string $target_os = null, bool $compare_hash
171171
$target_path = $extract_config['path'];
172172

173173
// Check if target is a file or directory
174-
$is_file_target = !is_dir($target_path) && str_contains($target_path, '.');
174+
$is_file_target = !is_dir($target_path) && (pathinfo($target_path, PATHINFO_EXTENSION) !== '');
175175

176176
if ($is_file_target) {
177177
// For single file extraction (e.g., vswhere.exe)

0 commit comments

Comments
 (0)