Skip to content

Commit

Permalink
[loaders] - allowance for back and forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Buchhofer committed Dec 1, 2021
1 parent c146759 commit 7d4c519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/LoaderBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class LoaderBase {

workingPathForURL( url ) {

const splits = url.split( '/' );
const splits = url.split( /[\\/]/g );
splits.pop();
const workingPath = splits.join( '/' );
return workingPath + '/';
Expand Down

0 comments on commit 7d4c519

Please sign in to comment.