Skip to content

Commit

Permalink
More strict STL checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-done committed Jan 16, 2024
1 parent df94bd3 commit 29e4317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Code/Converters/StlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class StlConverter implements ConverterContract
{
public function canParseFileContent($file_content)
{
return preg_match('/\d{2}:\d{2}:\d{2}:\d{2} , \d{2}:\d{2}:\d{2}:\d{2} , .+/m', $file_content) === 1;
return preg_match('/^\d{2}:\d{2}:\d{2}:\d{2} , \d{2}:\d{2}:\d{2}:\d{2} , .+/m', $file_content) === 1;
}

public function fileContentToInternalFormat($file_content, $original_file_content)
Expand Down

0 comments on commit 29e4317

Please sign in to comment.