Skip to content

Commit

Permalink
Merge pull request #19046 from yomboprime/hasefroch
Browse files Browse the repository at this point in the history
LDrawLoader (packLDrawModel.js) Fix LGTM error
  • Loading branch information
mrdoob committed Apr 6, 2020
2 parents d321dfe + 22e42ab commit 5c18dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/packLDrawModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {

Expand Down Expand Up @@ -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 ) {

Expand Down

0 comments on commit 5c18dfc

Please sign in to comment.