Unverified Commit 16418c8a authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1825 from ethereum/regexFileName

don't compile if no sol extension
parents d3284a11 d87d5d2f
......@@ -35,7 +35,8 @@ class CompileTab {
this.fileManager.saveCurrentFile()
this.editor.clearAnnotations()
var currentFile = this.config.get('currentFile')
if (!currentFile && !/.(.sol)$/.exec(currentFile)) return
if (!currentFile) return
if (!/\.sol$/.exec(currentFile)) return
// only compile *.sol file.
var target = currentFile
var sources = {}
......
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