`String.prototype.replace` only targets and replaces the first occurrence of a string. By using a regex with the global flag, all instances of a pattern are replaced.
@@ -412,7 +412,7 @@ THREE.OBJLoader.prototype = {
if ( text.indexOf( '\r\n' ) !== - 1 ) {
// This is faster than String.split with regex that splits on both
- text = text.replace( '\r\n', '\n' );
+ text = text.replace( /\r\n/g, '\n' );
}