diff --git a/src/app/compiler.js b/src/app/compiler.js index 3eab568d3f..e65be5c142 100644 --- a/src/app/compiler.js +++ b/src/app/compiler.js @@ -201,7 +201,7 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles reloop = false; for (var fileName in files) { var match; - while (match = importRegex.exec(files[fileName])) { + while ((match = importRegex.exec(files[fileName]))) { importHints.push(match[1]); } } @@ -219,7 +219,7 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles } 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 (result) { if ('content' in result) { var content = Base64.decode(result.content);