From e2848f5d707c3b485be5557375bceb25e6b5edee Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 28 Nov 2016 16:27:46 +0100 Subject: [PATCH] Fix regex escape. --- src/app/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/compiler.js b/src/app/compiler.js index 157b15ae8f..46fb6ba427 100644 --- a/src/app/compiler.js +++ b/src/app/compiler.js @@ -246,7 +246,7 @@ function Compiler (editor, handleGithubCall) { } else if (m in cachedRemoteFiles) { files[m] = cachedRemoteFiles[m] reloop = true - } else if ((githubMatch = /^(https?:\/\/)?(www.)?github.com\/([^\/]*\/[^\/]*)\/(.*)/.exec(m))) { + } else if ((githubMatch = /^(https?:\/\/)?(www.)?github.com\/([^/]*\/[^/]*)\/(.*)/.exec(m))) { handleGithubCall(githubMatch[3], githubMatch[4], function (err, content) { if (err) { cb('Unable to import "' + m + '": ' + err)