Skip to content

Commit

Permalink
fix: resolved #645
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Nov 13, 2023
1 parent 13da87a commit da98574
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Http/Controllers/DraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,13 @@ public function isJcampDX($folder)
$isDX = true;
}

if ($isJDX || $isDX) {
$fileTypes = ['jcamp'];
$isJCAMP = false;
if (array_intersect($fileTypes, $extensions) == $fileTypes) {
$isJCAMP = true;
}

if ($isJDX || $isDX || $isJCAMP) {
return true;
}

Expand Down

0 comments on commit da98574

Please sign in to comment.