Commit f89efc8e authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #343 from ethereum/fixregex

Fix regex escape.
parents e4ec6225 e2848f5d
......@@ -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)
......
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