ソースを参照

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
 
-		text = text.replace( /\\\r\n/g, '' ); // handles line continuations \
+		text = text.replace( /\\\r?\n/g, '' ); // handles line continuations \
 
 		var lines = text.split( '\n' );