Replace globally with regex pattern

pull/1185/head
ioedeveloper 4 years ago
parent 7871fae68e
commit 7162e312af
  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