Kaynağa Gözat

Merge pull request #19046 from yomboprime/hasefroch

LDrawLoader (packLDrawModel.js) Fix LGTM error
Mr.doob 5 yıl önce
ebeveyn
işleme
5c18dfc033
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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 ) {