pull/5370/head
yann300 4 years ago
parent b4157f6f1b
commit 92d8835484
  1. 2
      apps/remix-ide/src/app/files/workspaceFileProvider.js

@ -50,7 +50,7 @@ class WorkspaceFileProvider extends FileProvider {
async copyFolderToJson (directory, visitFile) {
visitFile = visitFile || (() => {})
const regex = new RegExp(`.workspaces/${this.workspace}/`, 'g');
const regex = new RegExp(`.workspaces/${this.workspace}/`, 'g')
let json = await super._copyFolderToJsonInternal(directory, ({ path, content }) => {
visitFile({ path: path.replace(regex, ''), content })
})

Loading…
Cancel
Save