Replace globally with regex pattern

pull/5370/head
ioedeveloper 4 years ago
parent 40c4503de7
commit 6ec88ebaae
  1. 2
      apps/remix-ide/src/lib/gist-handler.js

@ -54,7 +54,7 @@ function GistHandler (_window) {
}
const obj = {}
Object.keys(data.files).forEach((element) => {
const path = element.replace('...', '/')
const path = element.replace(/\.\.\./g, '/')
obj['/' + 'gist-' + gistId + '/' + path] = data.files[element]
})

Loading…
Cancel
Save