Commit e2848f5d authored by chriseth's avatar chriseth

Fix regex escape.

parent e4ec6225
...@@ -246,7 +246,7 @@ function Compiler (editor, handleGithubCall) { ...@@ -246,7 +246,7 @@ function Compiler (editor, handleGithubCall) {
} else if (m in cachedRemoteFiles) { } else if (m in cachedRemoteFiles) {
files[m] = cachedRemoteFiles[m] files[m] = cachedRemoteFiles[m]
reloop = true 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) { handleGithubCall(githubMatch[3], githubMatch[4], function (err, content) {
if (err) { if (err) {
cb('Unable to import "' + m + '": ' + err) cb('Unable to import "' + m + '": ' + err)
......
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