|
@@ -88,7 +88,7 @@ class PLYLoader extends Loader {
|
|
|
|
|
|
function parseHeader( data ) {
|
|
function parseHeader( data ) {
|
|
|
|
|
|
- const patternHeader = /ply([\s\S]*)end_header\r?\n/;
|
|
|
|
|
|
+ const patternHeader = /^ply([\s\S]*)end_header\r?\n/;
|
|
let headerText = '';
|
|
let headerText = '';
|
|
let headerLength = 0;
|
|
let headerLength = 0;
|
|
const result = patternHeader.exec( data );
|
|
const result = patternHeader.exec( data );
|