Merge pull request #2117 from ethereum/relative-path

Remove relative path prefix from path
pull/5370/head
David Disu 3 years ago committed by GitHub
commit 214bf85450
  1. 1
      apps/remix-ide/src/app/files/workspaceFileProvider.js

@ -32,6 +32,7 @@ class WorkspaceFileProvider extends FileProvider {
removePrefix (path) {
path = path.replace(/^\/|\/$/g, '') // remove first and last slash
path = path.replace(/^\.\/+/, '') // remove ./ from start of string
if (path.startsWith(this.workspacesPath + '/' + this.workspace)) return path
const splitPath = path.split('/')

Loading…
Cancel
Save