Explorar o código

Merge pull request #19046 from yomboprime/hasefroch

LDrawLoader (packLDrawModel.js) Fix LGTM error
Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
5c18dfc033
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      utils/packLDrawModel.js

+ 2 - 2
utils/packLDrawModel.js

@@ -222,7 +222,7 @@ function parseObject( fileName, isRoot ) {
 
 			// Embedded object was found, add to path map
 
-			var subobjectFileName = line.substring( charIndex ).trim().replace( "\\", "/" );
+			var subobjectFileName = line.substring( charIndex ).trim().replace( /\\/g, '/' );
 
 			if ( subobjectFileName ) {
 
@@ -263,7 +263,7 @@ function parseObject( fileName, isRoot ) {
 
 			}
 
-			var subobjectFileName = line.substring( charIndex ).trim().replace( "\\", "/" );
+			var subobjectFileName = line.substring( charIndex ).trim().replace( /\\/g, '/' );
 
 			if ( subobjectFileName ) {
 

粤ICP备19079148号