diff --git a/apps/remix-ide/src/lib/gist-handler.js b/apps/remix-ide/src/lib/gist-handler.js index a85e3b475e..da881e1103 100644 --- a/apps/remix-ide/src/lib/gist-handler.js +++ b/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] })