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

handle another case of line continuation

brian пре 11 година
родитељ
комит
a321ba05f0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/js/loaders/OBJLoader.js

+ 1 - 1
examples/js/loaders/OBJLoader.js

@@ -192,7 +192,7 @@ THREE.OBJLoader.prototype = {
 
 
 		// fixes
 		// fixes
 
 
-		text = text.replace( /\\\r\n/g, '' ); // handles line continuations \
+		text = text.replace( /\\\r?\n/g, '' ); // handles line continuations \
 
 
 		var lines = text.split( '\n' );
 		var lines = text.split( '\n' );
 
 

粤ICP备19079148号