Skip to content

Commit

Permalink
Better STL file recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-done committed Feb 6, 2024
1 parent fdc93f8 commit 09fe336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Code/Converters/EbuStlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class EbuStlConverter implements ConverterContract
{
public function canParseFileContent($file_content)
{
return substr($file_content, 3, 3) === 'STL';
return substr($file_content, 3, 3) === 'STL' && is_numeric(substr($file_content, 6, 2));
}

/**
Expand Down

0 comments on commit 09fe336

Please sign in to comment.