Procházet zdrojové kódy

handle another case of line continuation

brian před 11 roky
rodič
revize
a321ba05f0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/js/loaders/OBJLoader.js

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

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

粤ICP备19079148号