diff --git a/src/app/tabs/compileTab/compileTab.js b/src/app/tabs/compileTab/compileTab.js index ca5cd9ce8a..828a0e0d20 100644 --- a/src/app/tabs/compileTab/compileTab.js +++ b/src/app/tabs/compileTab/compileTab.js @@ -38,7 +38,7 @@ class CompileTab { this.editor.clearAnnotations() var currentFile = this.config.get('currentFile') if (!currentFile) return - if (!/\.sol$/.exec(currentFile)) return + if (!/\.sol/.exec(currentFile)) return // only compile *.sol file. var target = currentFile var sources = {}