Commit 7162e312 authored by ioedeveloper's avatar ioedeveloper

Replace globally with regex pattern

parent 7871fae6
......@@ -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]
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment