diff --git a/lib/Slic3r/STL.pm b/lib/Slic3r/STL.pm index ae964c4ef..a1562b94d 100644 --- a/lib/Slic3r/STL.pm +++ b/lib/Slic3r/STL.pm @@ -45,7 +45,7 @@ sub read_file { sub _read_ascii { my ($fh, $facets) = @_; - my $point_re = qr/([^ ]+)\s+([^ ]+)\s+([^ ]+)$/; + my $point_re = qr/([^ ]+)\s+([^ ]+)\s+([^ ]+)\s*$/; my $facet; seek $fh, 0, 0;