Преглед изворни кода

The PLY format starts with the ply magic word (#23018)

gero3 пре 3 година
родитељ
комит
bc5bdbc8ea
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/jsm/loaders/PLYLoader.js

+ 1 - 1
examples/jsm/loaders/PLYLoader.js

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